The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 06:10 AM
How to make a tool as 30-days evalution copy uday123 Linux 0 04-05-2006 01:10 AM
Tool for make file sarwan High Level Programming 4 11-14-2005 08:09 AM
big brother monitoring tool - make failed touny AIX 0 08-25-2005 11:57 PM
Merge Graphics with text file schaganti Windows & DOS: Issues & Discussions 6 11-08-2004 09:41 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-24-2005
umen umen is offline
Registered User
  
 

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

whitout using awk / sad and so on?
  #2 (permalink)  
Old 08-24-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
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?
  #3 (permalink)  
Old 08-24-2005
Sergiu-IT's Avatar
Sergiu-IT Sergiu-IT is offline
Registered User
  
 

Join Date: Mar 2005
Location: Transilvania
Posts: 133
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
  #4 (permalink)  
Old 08-25-2005
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0