PDA

View Full Version : Shell script --still learning--


visualsander
03-11-03, 03:50
Hi group,

i need to create a shell script. The base of it is an excisting script. However I have very little knowledge about this.

Can some please explain to me what this means:
SENDER_ID=`echo $@ | awk '{print $12}'`
SENDER_ID="SENDER_ID="$SENDER_ID
eval $SENDER_ID

AND

if [ ! -r $SQL_EXT_PROG ]

($SQL_EXT_PROG = the call to a variable)
So what does ! -r mean?

Where can I find what parameters i can use, what's a good internet site?

All help is greatly appreciated!!

Regards,

Visualsander

sathyaram_s
03-11-03, 13:22
You can use

man ksh for shell commands
and
man awk for awk commands ...

visualsander
03-12-03, 03:21
thnx. I do a lot of things in Unix and just forgot about man...

vjm
03-19-03, 07:44
I recommend "Portable Shell Programming" by Bruce Blinn. It's well written, concise and has lots of examples