Scripting question

Jeffrey Goldberg jeffrey at goldmark.org
Thu Sep 13 12:29:58 PDT 2007


On Sep 13, 2007, at 1:19 PM, Kurt Buff wrote:

> I think I may have a better solution. The file I'm trying to massage
> has a predecessor - the non-unique lines are the result of a
> concatenation of two files.
>
> Silly me, it's better to 'grep -v' with the one file vs. the second
> rather than trying to merge, sort and further massage the result. The
> fix will be to use sed against the first file to remove the ' NO',
> thus providing a clean argument for grepping the other file.

Instead of grep -v take a look at comm.

-j


More information about the freebsd-questions mailing list