Files list which are more than 300 MB size | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Files list which are more than 300 MB size

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-13-2006
redlotus72 redlotus72 is offline
Registered User
 
Join Date: Feb 2005
Last Activity: 7 January 2009, 5:03 PM EST
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Files list which are more than 300 MB size

Hi,
I need to find files list which are more than 300 MB size? My script It should search all inner directories too.
How can I proceed? Any idea?
Sponsored Links
    #2  
Old 09-13-2006
ranj@chn ranj@chn is offline Forum Advisor  
Registered User
 
Join Date: Oct 2005
Last Activity: 25 August 2011, 2:35 AM EDT
Location: Chennai
Posts: 370
Thanks: 0
Thanked 5 Times in 4 Posts
try find


Code:
find /dir/name -size +314572800c 2>/dev/null

will list just the filenames. For a long listing,

Code:
find /dir/name -size +314572800c -exec ls -l {} \; 2>/dev/null

300MB converted to bytes is the value substituted.
Sponsored Links
    #3  
Old 09-14-2006
sayonm sayonm is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 27 December 2007, 7:25 AM EST
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Bug also can be done by awk

ls -l | awk '{if ($5 >314572800) print $0}'

hope this works, provided the conversion of 300mb=314572800b is right
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to list files which have same size? shahril UNIX for Dummies Questions & Answers 3 11-22-2010 12:27 PM
How to list all files in dir and sub-dir's recursively along with file size? nmakkena UNIX for Dummies Questions & Answers 3 10-28-2010 08:23 AM
How to get size of a list of files with specified extension? resander UNIX for Dummies Questions & Answers 5 10-06-2010 09:43 AM
list the files with size in bytes balireddy_77 Shell Programming and Scripting 4 01-06-2009 12:17 PM
how to List out the Files based on the file Size...? psiva_arul Shell Programming and Scripting 6 04-08-2008 10:06 PM



All times are GMT -4. The time now is 10:04 PM.