Torrent gone bad


Results 1 to 3 of 3

Thread: Torrent gone bad

  1. #1
    Join Date
    Oct 2002
    Location
    Binghamton NY
    Posts
    2,435

    Torrent gone bad

    It's not a terribly interesting story, but I had a torrent download mess up, and for some reason, I'm not able to resume it. So I have a folder with about a thousand pdf files in them, half of which are essentiallt empty shells about 12 kb.

    I'm wondering if there's a way I can automatically remove all of the files under a certain size, perhaps a megabyte. It's complicated by the fact that Konqueror seems to be reading the size of the files as if they were fully downloaded, otherwie I'd just sort the icons according to size, and delete the bottom half or so.When I check the files with ls -s , I get an accurate measure.

    This is the sort of thing a script can do, am I right? A script could automate this for me easy, I'll bet.

  2. #2
    Join Date
    Aug 2006
    Posts
    180
    I'm guessing something like a quick
    find ~/badtorrents -size -1000k -exec rm -v {} \;
    should do.

  3. #3
    Join Date
    Oct 2002
    Location
    Binghamton NY
    Posts
    2,435

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •