My experience with OpenSource & My Hobbies
A Blog for technical Linux, shell, php, mysql, python, OpenSource | Career | Books | Movies
Pages
Home
Books
Movies
Travel & Photography
Drawings & Cartoon
My Interests
Do you know?
Customized search within this blog
Wednesday, August 4, 2010
How to remove file of same extension in one shell command?
Type the following command..
Syntax:
find
-iname "pattern" -exec rm -rf {} \;
example:
here i am going to delete all the virus .exe files in one go..
find . -iname "*.exe" -exec rm -rf {} \;
Hurray no virus in the current folder.. :)
Newer Posts
Home
Subscribe to:
Posts (Atom)