-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, 8 Dec 2002, Paul wrote:
> I am trying to delete files by piping the output from ls to egrep to rm :
>
> ls | egrep '(cd|CD)' | rm
"find" is probably a more appropriate tool in this instance.
Try `find -iname \*cd\* -exec rm \{\} \;`
I'd suggest you might want to check what it's going to delete first, in
which case delete everything from "-exec" onwards.
- --
"I know of no technological device at this time that would [prevent
piracy] and if it did exist, it would only be a matter of days before the
[..] manufacturers would have an override piece of equipment on their
machine and you would start from ground zero again."
-- Jack Valenti, President of the MPAA (1982)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6
iD8DBQE98tSIT21+qRy4P+QRAqUiAKD9PFwkODATT5rBv8IV1jSdCgub8QCgzNw7
PqxQiK/kwttHuhxqwEf+CrQ=
=gNWa
-----END PGP SIGNATURE-----