The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 03-15-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,930
See the following short example for one way of doing what you want.

Code:
#!/usr/bin/ksh93

TMP=file.$$

IFS=""
cat <<EOT >$TMP
  AAA BBB CCC
DDD EEE FFF
EOT

while read LINE
do
   echo $LINE
done < $TMP

rm $TMP