On Fri, 15 Aug 2003, Aung Min Naing Oo - Unidux (IT) wrote:

> Hello
> 
>       Is there any command to combine two text files.
> I need to combine the multiple access log files to
> one single file for the report generating purpose.
> 
> eg.   FileA
>               line 1
>               line 2
> 
>       FileB
>               line 3
>               line 4
> 
>       ResultFile
>               line 1
>               line 2
>               line 3
>               line 4

A simple:

---------------
FileB >> FileA

-----------------

would do at the command prompt. If you want advanced stuff, use PERL todo
the job.
 

Didier
---
PhD student

Singapore Synchrotron Light Source (SSLS)
5 Research Link,
Singapore 117603

Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Website: http://ssls.nus.edu.sg






-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to