[wellylug] simple super basic bash question

Mark Signal mark at databackup.co.nz
Mon Dec 20 21:53:46 NZDT 2004


if  file1 contains "hello" and file2 contains "goodbye" and I    'cat 
file1 file2 > file3'  then
file3 contains 2 lines:
hello
goodbye

how do I do this so that file3 contains the contents of file1 and file2 
on one line:
hello goodbye

cheers



Mark






More information about the wellylug mailing list