![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
for/while
This is an example of one of my requirement: Code:
$ cat any A C F D 4 A F C V A) $ while read line > do > echo $line > done < any A C F D 4 A F C V B) $ for line in `cat any` > do > echo $line > done A C F D 4 A F C V Using "for" how can I achieve the same output as while offers(A) ? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|