[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Linux command to combine two files



Hi,

	Thanks for the reply. I recalled the solution from your answer.

# cat FileB >> FileA


Thanks and Best Regards,

Aung Min Naing Oo
System Engineer

Unidux Electronics Limited
31 International Business Park
#04-03A Creative Resource
Singapore 609921
DID : +65 - 6568 1665
Tel : +65 - 6569 3611
Fax : +65 - 6569 9271
E-mail : aungmin unidux com sg
WEB: http://www.unidux.com.sg

[This message may contain privileged and confidential information. If this
message has been addressed to you by mistake, you should not disseminate,
copy or take any action in reliance on it, and please notify the sender
immediately by return mail]






-----Original Message-----
From: redhat-list-admin redhat com
[mailto:redhat-list-admin redhat com]On Behalf Of Didier Casse
Sent: Friday, August 15, 2003 2:36 PM
To: Aung Min Naing Oo - Unidux (IT)
Cc: redhat-list redhat com
Subject: Re: Linux command to combine two files






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: slsbdfc nus edu sg or didierbe sps nus edu sg
Website: http://ssls.nus.edu.sg






--
redhat-list mailing list
unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]