You are not logged in.

#1 2015-07-30 23:08:06

colbert
Member
Registered: 2007-12-16
Posts: 809

[SOLVED] Need to delete all small files from a photorec recovery

Hi, I need some help finding all files from a recovery dir that are less than 1mb and deleting. How can I do this? Searching I have found a simple use of find that works to provide a list of files <1mb:

find -type f -size -1000k

Now before I screw anything up, how do I delete the files that are matched from this command? Thanks for any help smile

edit: Found that adding "-exec rm {} \;" to the end does it smile

Last edited by colbert (2015-07-30 23:15:03)

Offline

Board footer

Powered by FluxBB