go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Put what you want to exclude or include into a file (eg. file1) one per line... Put the output of the directory contents into file2...
grep -i -v -f file1 file2 similarly if you wish to "match" everthing in file1 leave off the -v grep -i -f file1 file2 the -i ignores case so leave that off if you wish an exact match (case sensitive) grep -f file1 file2 the first file after the -f is always the "from" file In reply to Re^2: ignore list of files using readdir function (grep filter)
by tbone654
|
|