Apr 15, 2009

unix tool: paste

1. attach line number to a file
seq `wc -l
2. join multiple lines
seq 9 | paste -d" " -s -

3. join two files by columns
paste -d", " <(cut -d", " -f1 $FILE1) <(cut -d"," -f3,4 $FILE2)

No comments: