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 01-31-2008
joeyg's Avatar
joeyg joeyg is online now
Moderator
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 644
After the combine, do a sed

I think you followed how to do the paste command.
The sed command is replacing the pipe with a space and a pipe symbol.


> cat sfile1
name
nameabc
bcd
nameabcdefg

> cat sfile2
age
age1111
age2345
age6743

> paste -d"|" sfile1 sfile2 | sed "s/|/ |/g" >sfile3
> cat sfile3
name |age
nameabc |age1111
bcd |age2345
nameabcdefg |age6743
Reply With Quote