[wellylug] simple super basic bash question

Geraint Jones g.jones at french-maid.co.nz
Mon Dec 20 21:56:34 NZDT 2004


 echo `cat file1` `cat file2` > file3

________________________________

From: wellylug-admin at lists.wellylug.org.nz on behalf of Mark Signal
Sent: Mon 20/12/2004 9:53 PM
To: Wellylug
Subject: [wellylug] simple super basic bash question



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




--
Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
To Leave:  http://lists.wellylug.org.nz/mailman/listinfo/wellylug


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2936 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20041220/7201d06e/attachment.bin 


More information about the wellylug mailing list