![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. Shell Script Page. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| crontab + exec command | naushad | Shell Programming and Scripting | 4 | 03-26-2008 11:23 PM |
| Help with exec command and file descriptors II | masaki | Shell Programming and Scripting | 1 | 03-18-2008 12:12 AM |
| find command exec error | pavan_test | UNIX for Dummies Questions & Answers | 2 | 06-13-2006 12:58 AM |
| exec command and field descriptors.. | moxxx68 | UNIX for Dummies Questions & Answers | 5 | 12-04-2004 01:58 PM |
| using the -exec command | moxxx68 | UNIX for Dummies Questions & Answers | 0 | 04-13-2004 11:51 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
exec command
hai
i want know the difference between two shell scripts those are 1) a=2004 echo $a #output------2004 exec < inputfile while read line do echo $a #output-------2004 a=2005 echo $line echo $a #output -------2005 done echo $a #output------2005 2) a=2004 echo $a #output------ 2004 while read line do echo $a #output------2004 a=2005 echo $line echo $a #output-----2005 done < inputfile echo $a #output------2004 I am produceing output in coresponding row please observe it and tell me why the difference is???????? mailny Observe the difference between last line echo $a output |
| Forum Sponsor | ||
|
|