![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| set Working day in ksh | Rafael.Buria | Shell Programming and Scripting | 1 | 10-09-2007 05:42 AM |
| Not working | Mandab | Shell Programming and Scripting | 7 | 05-11-2007 10:23 PM |
| FTP is not working. | ronald_brayan | Security | 10 | 04-04-2007 09:23 AM |
| sed not working | baanprog | UNIX for Advanced & Expert Users | 5 | 09-18-2006 09:11 AM |
| why is this not working? | matt2kjones | UNIX for Dummies Questions & Answers | 2 | 07-09-2002 04:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
If not working
Novice/amature to UNIX programming.
Setting up if statement in shell script. Code:(It's named test1) while read tool do if ["$tool" = "nsr9"] then set machID=AD29018 echo @machID else echo "nope" printf "%s\n" $tool fi done < nsrlist Contents of the file that is being read(the file name is nsrlist) nsr9 nsr10 nsr11 nsr12 nsr13 Output I'm getting: > ./test1 ./test1[5]: [nsr9: not found nope nsr9 ./test1[5]: [nsr10: not found nope nsr10 ./test1[5]: [nsr11: not found nope nsr11 ./test1[5]: [nsr12: not found nope nsr12 ./test1[5]: [nsr13: not found nope nsr13 WHAT am I missing????? Not much of my hair is left right now....... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|