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

new to shell scripting, need some help

  #1  
Apr 26th, 2006
Hi all, i am new to shell scripting and know very few basics, i have a shell script program written by some other guy and i am trying to understand it. I am unable to understand a few parts of the program, hope some one cud help me with this ....

 
while [ "$?" = "0"  ]
  do
     if [ "$var" ]
     then
        echo "get /somepath/$value/$var /somepath/$var" >> testfile1.txt
     fi
     read var
  done < testfile2.txt 

In the while loop what does $? mean and will it not go to an infinite loop, in the echo statement, what does get do, i guess "read var" reads a value from keyboard right, and finally what does done < testfile2.txt mean .....

Hope some one helps and thanks for your help ...
AddThis Social Bookmark Button
Reply With Quote  

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:26 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC