Operating System - HP-UX
1837365 Members
3441 Online
110116 Solutions
New Discussion

Identifying files with size larger than 20 Mb

 
SOLVED
Go to solution
Harishs
Occasional Advisor

Identifying files with size larger than 20 Mb

Hi ,
Could you please guide me.
My objective is to identify three attributes 1.>file size 2.>time stamp creation 3.>list of files .
i used # find . -size +20000000c -print. It give me list of files .
What option I can use with du to get all three attributes in one command.


Many Thanks !!!

Regards

harish

4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: Identifying files with size larger than 20 Mb

What about this:

# find . -size +20000000c | xargs ll -d

This will do an ll for all files that match the 20MB size.

You must remember that it is impossible to know for certain when a file was created in Unix. You can know the last modified time, which is what ll displays by default.
Arturo Galbiati
Esteemed Contributor

Re: Identifying files with size larger than 20 Mb

Hi

find . -size +20000000c -type f 2>dev.null|xargs ll

this listf only files dscrading errorr in case some files are not readable by you (i.e. in /tmp directory) listing the files obtained.

HTH,
Art
AA786
Frequent Advisor

Re: Identifying files with size larger than 20 Mb


find . -size +20000000c -xdev -exec ll {} \;

for check big files in sub directory also

AA
Reshma Malusare
Trusted Contributor

Re: Identifying files with size larger than 20 Mb

hi,
For this

find . -size +20000000C -type f -exec ll {}\;

Regards
Reshma