Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Merging larges files by columns

by repellent (Priest)
on Sep 17, 2011 at 06:49 UTC ( [id://926518]=note: print w/replies, xml ) Need Help??


in reply to Merging larges files by columns

$ cat file1.csv a,b,c d,e,f g,h,i j,k,l $ cat file2.csv 0,w 1,x 2,y 3,z
$paste -d, file1.csv <(cut -d, -f2 file2.csv) > merged.csv
$ cat merged.csv a,b,c,w d,e,f,x g,h,i,y j,k,l,z

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://926518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found