[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] diff being boneheaded
- Subject: [ale] diff being boneheaded
- From: mbt at naunetcorp.com (Michael B. Trausch)
- Date: Wed, 07 Aug 2013 12:57:10 -0400
- In-reply-to: <CAEo=5Pw-yOXxkJn4_wQ-UJ8mHWzuNKkTYbG99egW6o7XPHhZxA@mail.gmail.com>
- References: <CAEo=5Pw-yOXxkJn4_wQ-UJ8mHWzuNKkTYbG99egW6o7XPHhZxA@mail.gmail.com>
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>