The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Adding new line at the end of file somesh_p Shell Programming and Scripting 5 11-05-2007 02:47 PM
adding a line to a file andy2000 Shell Programming and Scripting 2 03-26-2007 05:44 AM
Adding a character in the beginning of every line in a .dat file Cool Coder Shell Programming and Scripting 2 12-22-2005 03:47 AM
adding text to end of each line in a file cubs0729 Shell Programming and Scripting 2 11-10-2005 10:02 AM
Adding Text To each line of a file cubs0729 Shell Programming and Scripting 4 09-08-2005 01:40 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-21-2007
Registered User
 

Join Date: Aug 2007
Posts: 13
Adding multiple line at the end of the file

I have 2 files which contains the following lines

file1.txt

line4
line5
line6

file2.txt
line1
line2
line3

When i execute a script , I want my file2.txt will looks like this:

line1
line2
line3
line4
line5
line6

please help.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 11-21-2007
Registered User
 

Join Date: Nov 2007
Posts: 24
You can run this through command line


cat file1 >> file2
Reply With Quote
  #3  
Old 11-22-2007
Registered User
 

Join Date: Aug 2007
Posts: 13
thanks a lot its works!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0