[wellylug] simple super basic bash question
Mark Signal
mark at databackup.co.nz
Tue Dec 21 07:36:21 NZDT 2004
thank you
problems solved
Geraint Jones wrote:
> 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.
>
>
More information about the wellylug
mailing list