One Quickie


Sort grep-c (Unix->General)
grep -c will give you the number of hits for the given pattern in each file. It'd be nice to sort them, but the count occurs after the filename, e.g. GreebleBork:23

So, trick sort into using the last field (with a colon separator) as the sort key:

% grep -c translatesAuto *.xib | sort -t: -n -k2



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com