Re: basic command pipe question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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]


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux