The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
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 12-13-2001
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,126
sed 's/^/display text (/;s/$/)/' < xxxxxx.txt
would probably be the easiest. But if you're intent on using a shell...
Code:
#! /usr/bin/ksh
exec < xxxxxx.txt
while read line ; do
      echo 'display text ('${line}')'
done
exit 0