The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
clip selective text and minus srini123 Shell Programming and Scripting 1 02-28-2008 03:10 AM
How to make a tool as 30-days evalution copy uday123 Linux 0 04-04-2006 10:10 PM
Tool for make file sarwan High Level Programming 4 11-14-2005 05:09 AM
big brother monitoring tool - make failed touny AIX 0 08-25-2005 08:57 PM
Merge Graphics with text file schaganti Windows & DOS: Issues & Discussions 6 11-08-2004 06:41 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-24-2005
Registered User
 

Join Date: Aug 2005
Posts: 229
Is there any non graphical tool that make selective merge between text files?

whitout using awk / sad and so on?
Reply With Quote
Forum Sponsor
  #2  
Old 08-24-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,269
join will operate on lines in a set of files and create a resultset, made of lines from separate files. Is that what you mean?
Reply With Quote
  #3  
Old 08-24-2005
Sergiu-IT's Avatar
Registered User
 

Join Date: Mar 2005
Location: Transilvania
Posts: 125
Quote:
Originally Posted by umen
whitout using awk / sad and so on?
cat file1.txt | grep "selection" > new_file.txt
cat file2.txt | grep "other_selection" >> new_file.txt

Of course, you can use awk instead of grep and awk or sed to change the content of the files.
Or, if you don't want to make any change/selection, cat file1.txt file2.txt >> new_file.txt
Reply With Quote
  #4  
Old 08-24-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
vimdiff.

Two files will be displayed side by side with highlighting of the differences. And you can 'do' and 'dp' to copy the diffs to and from the buffers, so this is selective. The best way to do this I guess.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:29 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