Thinking about Software
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2016
(2)
►
July
(1)
►
March
(1)
►
2012
(9)
►
December
(1)
►
August
(1)
►
June
(1)
►
May
(2)
►
April
(3)
►
March
(1)
►
2011
(6)
►
October
(1)
►
September
(1)
►
August
(1)
►
July
(1)
►
June
(1)
►
April
(1)
►
2010
(20)
►
December
(2)
►
November
(1)
►
October
(1)
►
September
(10)
►
July
(1)
►
March
(5)
▼
2009
(11)
►
December
(1)
►
June
(1)
►
May
(2)
▼
April
(2)
unix tool: paste
bash script: how to handle command line arguments
►
March
(5)
►
2007
(4)
►
December
(1)
►
November
(3)
About Me
Unknown
View my complete profile
No comments:
Post a Comment