right tool for the job

Michael ODonnell michael.odonnell at comcast.net
Thu Mar 4 11:00:18 EST 2004


I presume you wouldn't have asked unless you needed
something rather more sophisticated than the following,
but FWIW:

for dir in `find hierarchyRoot -type d | fgrep -v -x -e excludedName1 -e excludedName2 `
do
    find $dir -maxdepth 1 -type f -someOtherQualifier -yetAnotherQualifier >>unsortedList
done     

sort -u <unsortedList >sortedList
 



More information about the gnhlug-discuss mailing list