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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-11-2007
vino's Avatar
vino vino is offline
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,710
Here is one way.
Code:
while read line
do
  OUT=${line}
  read line
  OUT=${OUT};${line}
  echo ${OUT} >> output.txt
done <input.txt
Reply With Quote