in reply to grep or perl
Or a not-quite-one-liner in perl# use -r if you want to process recursively grep -L 'N\+' your_directory | xargs cp --target-directory wherever
They're untested and assume *nix-esque command-line tools (which should be fine since you're running linux) but that should get you started.perl -MFile::Find::Rule -le 'print for find(file => grep => qr/(?!N\+)/, in => @ARGV)' sourcedir | xargs \ cp --target-directory wherever
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: grep or perl
by Anonymous Monk on Jun 04, 2003 at 13:00 UTC | |
by broquaint (Abbot) on Jun 04, 2003 at 13:41 UTC | |
by revdiablo (Prior) on Jun 05, 2003 at 00:01 UTC |