Results 1 to 2 of 2
i have a couple of column files, ex like
dat1.txt
98
87
dat2.txt
88
and so on (dat3.txt...datn.txt)
and i want to combine this column files to single row file ...
- 08-11-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 5
combined several column files and convert it into single row file
i have a couple of column files, ex like
dat1.txt
98
87
dat2.txt
88
and so on (dat3.txt...datn.txt)
and i want to combine this column files to single row file like this (example like combine dat1.txt and dat2.txt)
98 87 88
Appreciate your help guys....
- 08-11-2011 #2Just Joined!
- Join Date
- Aug 2005
- Posts
- 5
will result in a long line with no training new line "\n".Code:cat dat*.txt | tr '\n' ' '


Reply With Quote