![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
|
||||
|
Try something like this:
Code:
OIFS=$IFS IFS="" for line in `cat any` do echo $line done IFS=$OIFS Regards |
| Sponsored Links | ||
|
|