|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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/null300MB converted to bytes is the value substituted. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
ls -l | awk '{if ($5 >314572800) print $0}'
hope this works, provided the conversion of 300mb=314572800b is right ![]() |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|