[Techtalk] finding added lines in a file
Miriam English
mim at miriam-english.org
Fri Aug 16 23:34:15 UTC 2013
R. Daneel Olivaw wrote:
> diff --suppress-common-lines A.txt B.txt | egrep '<|>' | cut -c 3-
This looks like it may be exactly what I want. Thanks Daneel.
I suspect I only need "grep '>'", but I have to look more closely at the
output of diff to be sure. And using cut is a nice touch.
Cheers,
- Miriam
--
If you don't have any failures then you're not trying hard enough.
- Dr. Charles Elachi, director of NASA's Jet Propulsion Laboratory
-----
Website: http://miriam-english.org
Blogs: http://miriam-e.dreamwidth.org
http://miriam-e.livejournal.com
More information about the Techtalk
mailing list