using du to see files of a particular size only
I am having a few situations to which I do not see any thing in du man pages.
Quote:
is say for example Code:
dir0--->dir1-->dir3-->dir4 |
I don't know that I completely understand what you are looking for and/or asking so if I am way off please expand on your example/request...
Code:
find ./sub-directory/ -type f -size +300M -print the 2nd line is if you want the output to be that of du Code:
find ./sub-directory/ -type d -exec du -sh {} \; :study: |
If I understand you correctly ("I want to see files in a sub directory which are larger than a particular size only"), you can use:
Code:
find . -printf "%h/%f %s\n" | awk '{if ($2 > 200) print $1, $2}' EDIT: Beaten to it by rayfordj. He seems to have gone with a similar interpretation to the one I assumed... As before, tell us if we're misunderstanding you |
Hi thanks for the messages.You people guessed the correct things.
|
All times are GMT -5. The time now is 05:30 AM. |