Article written

  • on 07.07.2009
  • at 02:42 PM
  • by arkin

Clean up those wget .listing files 3

Jul7

For some reason when I did a wget FTP mirror to backup some data it left behind lots of listing files, here is how you remove them.

Enter the directory and use the command:

$ for i in `find . -name ".listing"`; do rm -v $i; done

subscribe to comments RSS

There are 3 comments for this post

  1. arkin says:

    Just a note, don’t use the dollar sign at the start, thats just to show its a shell (bash) prompt.

  2. joebert says:

    I had to do the same thing not long ago. Actually, it was recent enough that I was able to cat/grep my .bash_history to find the command I used. :)

    Here’s what I ended up doing.

    find . -type f -name “.listing” -exec rm -f {} \;

  3. arkin says:

    Same thing, different way, as always there are tons of ways.

    -v in my method means Verbose which shows which .listing files were removed.

    -f in your method means forceful, I don’t think this would be required though :)

Please, feel free to post your own comment

* these are required fields

arkinEx Codex is powered by WordPress and FREEmium Theme.
developed by Dariusz Siedlecki and brought to you by FreebiesDock.com