remove a list of files in linux

Post Reply
mister_v
Posts: 137
Joined: Sat Jun 20, 2009 5:42 pm

remove a list of files in linux

Post by mister_v »

I want to remove a bunge of tar.gz files.

remove a list of files in linux

but I don't know how to do it.

find . -name tar.gz > temp.file

But then?
Chris
Site Admin
Posts: 127
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: remove a list of files in linux

Post by Chris »

Try this

Code: Select all

find . -name tar.gz -exec rm -f {} \;
You might want to copy them first before deleting them.
Post Reply