My experience with OpenSource & My Hobbies
A Blog for technical Linux, shell, php, mysql, python, OpenSource | Career | Books | Movies
Pages
(Move to ...)
Home
Books
Movies
Travel & Photography
Drawings & Cartoon
My Interests
Do you know?
▼
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.. :)
No comments:
Post a Comment
‹
Home
View web version
No comments:
Post a Comment