Re: compare files

"[email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
It sounds like maybe you prefer the sed solution presented. That's not how I would normally do things,  but it's your choice. Perhaps the grep solution crashes work or the sed solution is much faster, but that is not clear. Anyway, related to the grep solution, you asked a few questions:
 

 1) You say the process "stops after a while". Did the process crash or did you kill it?
 

 2) You say "seems to use a lot of memory". However, you don't list any numbers, eg results from "top" command.
 

 3) You only want to display the modified line, not the standard diff output. You can grep for the lines you want:
 

 grep "^>" # just select lines starting with '>' character.
 

 Daniel


[Non-text portions of this message have been removed]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.