One Quickie


Getting grep to return file names of matches rather than the actual match (Unix->General)
Use the -l (dash ell) flag to grep. If a file contains the expression, the name of the file (rather than the matching line) is displayed. e.g. to open all the files that contain 'rzolf'

% grep -l rzolf *.ham | xargs open



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

webmonster@borkware.com