-
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.
-
I'm guessing something like a quick
find ~/badtorrents -size -1000k -exec rm -v {} \;
should do.
-
Damn I have to lerarn how to do that!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|