[NTLUG:Discuss] Short script question
Hank Ivy
hankivy at hot.rr.com
Tue May 4 17:41:17 CDT 2010
On Tuesday 04 May 2010 08:15 am Bobby Wrenn wrote:
> Can someone point me in the right direction? Perhaps an on line tutorial
> that might cover something like this. I've looked at sed and awk
I recommend PERL. Use pattern matching to sort out any irrelevant characters,
and a hash array to keep patterns found, and a count. Write out whatever part
of the hash you want.
If you just want something simple, use "sort | uniq -d" to find only the
duplicated lines.
--
Hank Ivy
GPG Fingerprint:
1A0F E1CB 0160 0069 7C19 4B00 911C 92E8 F8B0 4C7C
More information about the Discuss
mailing list