Description: I know this isn't really eyecandy, but I have found it very useful in eliminating junk files, like temporary backup text files (have '~' at the end, are hidden), or if you've just moved from windows, all those Thumbs.db and Desktop.ini files! It will scan your home directory recursively for these files, list them, and ask you to remove them, (yes or no).
about running find a second time, yeah, ok, the whole thing's not perfect, but it gets the job done! and thanks to Linux actually being designed correctly, the second search only takes a second or two! :)
Ratings & Comments
8 Comments
Oh, this is great dude. Thanks.
thanks for this, those hidden file really annoy me when I am using the command line. I might change this so it runs automatically on startup :)
glad it could be put to use :) I really like it!, if I do say so myself :)
do what ever you want, redistribute it, enhance it! I just want everyone to have a reasonably decent tool for removing these junk files! :)
Cool. Perhaps I'll give it a UI and integrate it to my *nix-style? I'll see. ;)
... the script runs find a second time, wouldn't it be better piping the output from the first run in a temporary file: Quote:
find ... > filelist
----
for file in $(cat filelist); do rm -f $file; done
rm -f filelist
Just a Suggestion.
... hmm check here: http://www.nanolx.org/free/cleaner.sh
about running find a second time, yeah, ok, the whole thing's not perfect, but it gets the job done! and thanks to Linux actually being designed correctly, the second search only takes a second or two! :)