Linux.com

Bug in script

Posted by: Anonymous [ip: 195.145.160.206] on October 05, 2007 07:56 AM
Be careful, uniq expects its input to already sorted alphabetically! So to fix this bug, either put a sort before uniq



... | sort | uniq ...



or get rid of uniq bei using the -u option to sort:



... | sort -u



Have fun!

#

Return to A script to tell which workstations are using Samba shares