[ale] diff being boneheaded
Michael B. Trausch
mbt at naunetcorp.com
Wed Aug 7 12:57:10 EDT 2013
On 08/07/2013 12:37 PM, Jim Kinney wrote:
> Ideas on how to tell diff to ignore the line count between lines?
> Basically all I want is a fast "these lines are not in the other file"
> for both files.
cat file1 file2 | sort > _tmp0.out
uniq -u < _tmp0.out
Example:
[mbt at aloe ~]$ cat > a.txt
abcd
efgh
ijkl
[mbt at aloe ~]$ cat > b.txt
efgh
ijkl
mnop
[mbt at aloe ~]$ cat {a,b}.txt|sort|uniq -u
abcd
mnop
--
Naunet Corporation Logo Michael B. Trausch
President, *Naunet Corporation*
? (678) 287-0693 x130 or (888) 494-5810 x130
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130807/50aec801/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ieebbjej.png
Type: image/png
Size: 1701 bytes
Desc: not available
URL: <http://mail.ale.org/pipermail/ale/attachments/20130807/50aec801/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mail.ale.org/pipermail/ale/attachments/20130807/50aec801/attachment.sig>
More information about the Ale
mailing list