Passion In Programming
Technology - Programming - Everyday Life
Wednesday, November 6, 2013
Delete all files with a particular extension in a particular folder and its sub directories
Delete files of a given extension within a directory and its sub directories e.g. to delete files with '.pyc' extension, use the following command:
find . -type f | grep '.pyc'$ | xargs rm
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment