RSS Forums RSS
Please support our Shell Scripting advertiser: Programming Forums
Views: 1848 | Replies: 2
Reply
Join Date: Mar 2006
Posts: 2
Reputation: Sona is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Sona Sona is offline Offline
Newbie Poster

Help Shell script

  #1  
Mar 23rd, 2006
I have an input file coming, based on what is there in the starting from the third character (which is the table name starting from 3rd character in the first line).I have to set the parameter x.
like If the table name='employee'(sarted from the third character) then x=1
if table name='policy' then x=2 (started from the third character)
else x=3.
So based on what is in the file from the third character of the fist line I have to set the parameter x and send the parameter out of the script ,like a return value.

Any help asap please.....
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: India
Posts: 16
Reputation: kamitsin is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
kamitsin kamitsin is offline Offline
Newbie Poster

Re: Shell script

  #2  
Apr 27th, 2006
confused ??? can u send few lines of your input file ???
Reply With Quote  
Join Date: Mar 2006
Posts: 2
Reputation: Sona is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Sona Sona is offline Offline
Newbie Poster

Re: Shell script

  #3  
Apr 27th, 2006
Never mind, problem has been solved. Thank you for the time and reposne though....
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
All times are GMT -4. The time now is 9:23 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC