10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
There are many places where I can see the syntax description for optargs, which, usually boils down to this:
getopts OPTSTRING VARNAME
where:
OPTSTRING tells getopts which options to expect and where to expect arguments
VARNAME tells getopts which shell-variable to use for option reporting... (2 Replies)
Discussion started by: sharkura
2 Replies
2. Shell Programming and Scripting
in bash:
LIST=`cat $1`
for i in $LIST
do
...
done
how will i do this in perl ?
$1 is my first arguement. I'm a newbie in perl and will appreciate much your help guys ... (4 Replies)
Discussion started by: linuxgeek
4 Replies
3. Shell Programming and Scripting
i wanna passing an argument which read in a file or a set of files if the files are given in the command line, otherwise use STDIN if no file argument.
i got something like that, but it is not really working.
so can anyone help me? which one is better to use for and how? Use perl.
Thank you
... (0 Replies)
Discussion started by: mingming88
0 Replies
4. Shell Programming and Scripting
Hi Guys,
I was wondering if you could help me out -
I have a directory /home/users/datafiles/ which contain files "dat dd-mm-yy.xls"
I am trying to write a script which does the following -
(1) loops through all the files
(2) retrieves the dd-mm-yy string and converts it into a... (12 Replies)
Discussion started by: muser
12 Replies
5. Shell Programming and Scripting
public class HelloWorld {
public static void main(String args) {
System.out.println("Welcome, master");
}
}
and I compiled using
javac HelloWorld.java
]
Suppose that I execute the following command directly from the shell:
java -XX:OnError="gdb - %p" HelloWorld
Then it works... (8 Replies)
Discussion started by: fabulous2
8 Replies
6. UNIX for Dummies Questions & Answers
Hi Gurus!
I wonder if anyone can help me, I'm sure you guys can.
I have a text file which contains a lot of data on the one line as follows:
$
What I need to do is pull all of those id values out (eg 2549425) and write them to a list in a text file.
Any help would be greatly... (3 Replies)
Discussion started by: th3g0bl1n
3 Replies
7. UNIX for Dummies Questions & Answers
I tried to do a search, but it couldnt pinpoint what my answer since using limited but broad keywords. Sorry in advance ; ;
Im limited to using Bourne shell scripting only, atm I have the following code (just the heading part of it)
...
...
# VARIABLE DECLARATION
# ====================
... (2 Replies)
Discussion started by: eeto
2 Replies
8. Shell Programming and Scripting
Hi all,
Iam a beginer in shell scripting.
i need a script that can parse the arguments and store them in variables.
ex: ./myScript -v v1 -h v2 -c v3......
can someone suggest me...?
tnx in adv. (1 Reply)
Discussion started by: midhun_u
1 Replies
9. UNIX for Dummies Questions & Answers
how to parse the command line argument to look for '@' sign and the following with '.'.
In my shell script one of the argument passed is email address. I want to parse this email address to look for correct format.
rmjoe123@hotmail.com has '@' sign and followed by a '.'
to be more... (1 Reply)
Discussion started by: rmjoe
1 Replies
10. Shell Programming and Scripting
how to parse the command line argument to look for '@' sign and the following with '.'.
In my shell script one of the argument passed is email address. I want to parse this email address to look for correct format.
rmjoe123@hotmail.com has '@' sign and followed by a '.'
to be more... (1 Reply)
Discussion started by: rmjoe
1 Replies