jeff at zingstudios.com
Thu Dec 14 10:58:14 MST 2006
> I am trying to remove the second occurance of the match.
This seems like a better job for 'uniq', which will show only unique
lines in a file.
# sort hosts.deny | uniq > hosts.deny.new
I typically run 'sort' before 'uniq' because it seems that uniq looks
for repeated lines, and if you happen to have the same line in
different places in the file it may not catch it as a duplicate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://plug.org/pipermail/plug/attachments/20061214/98cf2f34/attachment.bin
More information about the PLUG