Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ Any idea the command to find and replace a file by name and size

Posted by: dwhs Nov 19 2015, 09:39 PM

I want to do a /home search and remove for files named error_log that are over 5mb

I use this now but it doesn't factor space:

find /home -type f -name error_log -exec rm -f {} \;

Any idea how to add the 5 mb limit here?

Thanks!

Posted by: jazz123 Oct 25 2016, 05:45 PM

QUOTE (dwhs @ Nov 19 2015, 09:39 PM) *
I want to do a /home search and remove for files named error_log that are over 5mb

I use this now but it doesn't factor space:

find /home -type f -name error_log -exec rm -f {} \;

Any idea how to add the 5 mb limit here?

Thanks!


It can be easily done via third party plugin!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)