11-02-2011
i realise that i am only looking for advise i have managed to get several scripts going already i have one particula
r question about a script
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey Guys,
I am creating a bash script on my freeBSD box, the script should basically ask the user to enter a username and domain. The script will take this information and basically append alot of information to config files so the user can receive email from that domain and create a web site at... (1 Reply)
Discussion started by: traxy
1 Replies
2. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
The object is to enter a number, then have another classmate guess the entered number.
2. Relevant commands,... (6 Replies)
Discussion started by: Jjohn1987
6 Replies
3. Shell Programming and Scripting
hy guys,
I have perl script provided to me but i need to convert it into shell .Can you help me in this using sed shell command.
cat /etc/passwd |perl -ne '/^(\w+):\w+: (\w+)/ and print "$1, $2\n";' (1 Reply)
Discussion started by: singh_king
1 Replies
4. Shell Programming and Scripting
Hi, I'm a beginner at shell scripting, just started scripting in bash a few days ago.
I want to test if the command ls *.jpg returns exit code 2, and if yes I want to execute a new command ls *.jpeg, doing a test on it... and pretty much repeat the procedure.
Is this correct?
#!/bin/bash... (1 Reply)
Discussion started by: Utherr
1 Replies
5. Shell Programming and Scripting
If there's anywhere to look this up, it would be just as helpful. I googled and really couldn't find anything relative to this.
ok... General Variables
1) When creating a script I made a file "prog1.sh" does it matter if the end is .sh or is this what has to be done like prog.bash or... (4 Replies)
Discussion started by: austing5
4 Replies
6. Shell Programming and Scripting
Hello people, I am new to the forum and to scripting and I'm honored to be a part of the Forum :)
At the moment I'm learning to do basic scripting for school.
Now I got 2 assignments that I do not understand. The case scripting I have mastered a bit. But now I have an assingment to make with... (1 Reply)
Discussion started by: hulsi88
1 Replies
7. Shell Programming and Scripting
hi all, i am very new to linux and am trying to create a basic script.
I would like the script to copy files from one directory into another, (e.g Script ~/my-documents/fileone ~/my-documents/filetwo)
Once all files have been copied, i'd like another script to run automatically and rename... (12 Replies)
Discussion started by: highland
12 Replies
8. Shell Programming and Scripting
Hello,
I am new to Linux and studying to become a Unix System Admin. I am taking a course in which I was practicing creating a bash script to ping a particular IP address. The script can be found below:
#/bin/bash
echo "Enter the IP address"
read ip
if
then
ping -c 1 $ip
if ;... (3 Replies)
Discussion started by: shah9250
3 Replies
9. UNIX for Beginners Questions & Answers
I at the moment, making a simple bash script, capable of setting up an workspace for me, so i don't have to do it manually.. Problem is though i can't seem to provide the bash script any argument, without running into my error checks, checking for input...
Here is the code:
#!/bin/bash... (7 Replies)
Discussion started by: kidi
7 Replies
INTRO(1) User Contributed Perl Documentation INTRO(1)
NAME
PDL::Intro - Introduction to the Perl Data Language
Version 2.0
"Why is it that we entertain the belief that for every purpose odd numbers are the most effectual?" - Pliny the Elder.
Karl Glazebrook [karlglazebrook@yahoo.com]
DESCRIPTION
Perl is an extremely good and versatile scripting language, well suited to beginners and allows rapid prototyping. However until recently
it did not support data structures which allowed it to do fast number crunching.
However with the development of Perl v5, Perl acquired Objects. To put it simply users can define their own special data types, and write
custom routines to manipulate them either in low level languages (C and Fortran) or in Perl itself.
This has been fully exploited by the PDL developers. The "PDL" module is a complete Object-Oriented extension to Perl (although you don't
have to know what an object is to use it) which allows large N-dimensional data sets, such as large images, spectra, time series, etc to be
stored efficiently and manipulated en masse. For example with the PDL module we can write the perl code "$a=$b+$c", where $b and $c are
large datasets (e.g. 2048x2048 images), and get the result in only a fraction of a second.
PDL variables (or piddles as they have come to be known) support a wide range of fundamental data types - arrays can be bytes, short inte-
gers (signed or unsigned), long integers, floats or double precision floats. And because of the Object-Oriented nature of PDL new cus-
tomised datatypes can be derived from them.
As well as the PDL modules, that can be used by normal perl programs, PerlDL comes with a command line perl shell, called perldl, which
supports command line editing. In combination with the various PDL graphics modules this allows data to be easily played with and visu-
alised.
SYNOPSIS
This manual page provides a general introduction to the underlying philosophy of PDL. For an overview over the rest of the documentation
see PDL::Index. As a beginner the following documents are particulary recommended:
PDL::Impatient
Quick summary - PDL for the impatient
PDL::FAQ
The Frequently Asked Questions list for PDL.
PDL::Philosophy
Why another matrix language?
PDL::Indexing
An introduction to using smart indices in PDL.
PDL::NiceSlice
The all important slicing of piddles.
AUTHOR
Copyright (C) Karl Glazebrook (karlglazebrook@yahoo.com), Tuomas J. Lukka, (lukka@husc.harvard.edu) and Christian Soeller (c.soeller@auck-
land.ac.nz) 1997-2002.
Commercial reproduction of this documentation in a different format is forbidden without permission.
perl v5.8.0 2002-03-18 INTRO(1)