
August 27th, 2011, 10:23 PM
|
|
|
|
That seems to be how paste works, but you might be able to get it to drop the tab character it uses (by default) as the replacement to file1's newlines by usind -d '' to have the delimiter be 'blank'. I've not tested that so cannot be sure it will work.
Failing that an alternate method could be used - either continue to use paste and use a 'strange' delimiter and then use sed or tr to edit out that character (so choose one you'd never see), or use a different method of concatentation entirely. Most methods would require you to deal with the (potential) newline at the end of file1 at some stage of the process.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|