in reply to Delete files matching pattern
find . -type f -name '.*se\d\d\d\dab.*' -exec rm {} \; # Or ... find . -type f | grep '.*se\d\d\d\dab.*' | rm
If you have to do it in Perl, that's about the best you're going to get.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Delete files matching pattern
by mda2 (Hermit) on May 09, 2005 at 20:47 UTC | |
|
Re^2: Delete files matching pattern
by bofh_of_oz (Hermit) on May 09, 2005 at 15:40 UTC | |
by radiantmatrix (Parson) on May 10, 2005 at 16:17 UTC |