Re: on selective multi file delete
*- On 3 Oct, Chadi wrote about "on selective multi file delete"
> hello everyone ...
>
> i just finished downloading 2500++ files spread across lots of subdirectories using wget ...
> is there i can SAFELY delete all the .listing files created by wget scatered all throughout ???
>
> TIA,
>
> Chad
>
>
find <dir> -name .listing -print | xargs -i rm {}
Test it first with
find <dir> -name .listing -print | xargs -i ls {}
where <dir> is the parent directory of all the downloaded files.
--
Brian
---------------------------------------------------------------------
Mechanical Engineering servis@purdue.edu
Purdue University http://www.ecn.purdue.edu/~servis
---------------------------------------------------------------------
Reply to: