Rich Kulawiec via plug on 28 May 2021 09:40:18 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Using diff


On Thu, May 27, 2021 at 05:37:33PM -0400, Michael Lazin via plug wrote:
> I used the sort command to make two lists.  One list has everything on the
> first list and more.  They are already alphabetically sorted.  I want to
> know what is on the second list that is not on the first list.  I am trying
> to use diff but perhaps there is a better way.   I tried awk and an ugly
> egrep and now I am giving up and asking for help.  Thanks for your time.

	% comm -13 file1 file2

---rsk
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug