basic command pipe question
Steven W. Orr
steveo at syslang.net
Mon Jun 19 02:10:06 UTC 2006
On Sunday, Jun 18th 2006 at 23:24 +0100, quoth Craig McLean:
=>Don Russell wrote:
=>> I need some basic CLI help. :-) I've googled, and read, and I can't find
=>> how to erase a bunch of files in one go.
=>>
=>> Specifically, I need a command that will erase *.zip files, regardless
=>> of the text case of the .zip part....
=>
=>Assuming you are using bash (or a recent, regexp-capable shell)
=>
=>$ rm *.[Zz][Ii][Pp]
Please don not confuse this with regular expressions. This is not a regex.
It is an example of globbing.
If it was an example of a regex, it would have read
$ rm .*\.[zZ][iI][pP]
More information about the fedora-list
mailing list