Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Any idea the command to find and replace a file by name and size
dwhs
post Nov 19 2015, 09:39 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 19-November 15
From: Earth
Member No.: 18,972



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!


--------------------
Web Host Pro http://webhost.pro
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
jazz123
post Oct 25 2016, 05:45 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 25-October 16
Member No.: 19,161



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!
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2017 - 11:22 AM