The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Merg files
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-10-2008
tjmannonline tjmannonline is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 91
Merg files

i have:

file1 contains: 123abc
file2 contains: 123 abc

i used:

paste file1 file2 > file3, and the output looks like this:

123abc 123 abc

i used:

cat file3 | awk '{print $1, $2}' > file4, result: 123abc 123

my intention is to get file looks like this:

123abc123 abc

when i use paste, it merges columns, but it put space. i want pasted each file, but i don't want any space.