Register
It is currently Wed Apr 16, 2014 7:28 am

How to Combine text


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Tue May 17, 2005 8:44 pm   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 657
Location: Des Moines, Iowa
Originally posted by joshwilson1
I am looking for a way to take the text out of two fils and put it into one file. Could somebody tell me the command and the syntax associated with doing that? Thanks.


Posted by Crouse
Code:
page1.txt >> combined.txt
page2.txt >> combined.txt

http://www.bashscripts.org/docs/Bash-Ad ... ction.html
Has some more info on that.
The single > outputs to a file also, the >> outputs to a single file, and if it exists already APPENDS (adds to) it.


Posted by jbsnake
or try
Code:
cat file1 file2 >> file3

cat can take more than one file at a time
simplistic no?


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP