If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Shell script --still learning--

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-03, 02:50
visualsander visualsander is offline
Registered User
 
Join Date: Mar 2003
Posts: 7
Shell script --still learning--

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
Reply With Quote
  #2 (permalink)  
Old 03-11-03, 12:22
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,543
Re: Shell script --still learning--

You can use

man ksh for shell commands
and
man awk for awk commands ...
Reply With Quote
  #3 (permalink)  
Old 03-12-03, 02:21
visualsander visualsander is offline
Registered User
 
Join Date: Mar 2003
Posts: 7
thnx. I do a lot of things in Unix and just forgot about man...
Reply With Quote
  #4 (permalink)  
Old 03-19-03, 06:44
vjm vjm is offline
Registered User
 
Join Date: Mar 2003
Posts: 1
Re: Shell script --still learning--

I recommend "Portable Shell Programming" by Bruce Blinn. It's well written, concise and has lots of examples
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On