Linux: delete tons of files from folder with one command

cd <folder> $> perl -e 'for(<1.*>){((stat)[9]<(unlink))}' $> find ./ -name "1.*" -exec rm {} \; $> for i in 1.*; do rm -rf $i; done
Delete huge number of files (1.*) from folder.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.