as we can find file greater than 1 MB with find command as:
find /dir -name '' -size +1M
find /dir/ -name '*' -size +1M
but wats its doing is , its finding files only in current directory not in sub-directories. i want files from sub-directories too.
Please help... Thanx in advance...!!!!
manoj_dahiya22:
as we can find file greater than 1 MB with find command as:
find /dir -name '' -size +1M
find /dir/ -name '*' -size +1M
but wats its doing is , its finding files only in current directory not in sub-directories. i want files from sub-directories too.
Please help... Thanx in advance...!!!!
try either
find . -size +1M
find ./dir -size +1M
Thanx Vidyadhar85
but its producing same result....!
please let me know the solution if you find any ..... because its reuired in my project . i need to send details of files greate than 1 MB
Thanks agaain
wabard
March 18, 2009, 8:14am
4
By default, the find command parses through sub-directories. What O/S Flavor are you on?
for example...
find . -print
will return a complete file listing for everything from the current directory down...
Note that not all U**X Flavor support the human readable size nomenclature. Try +1000k instead. All find command support sizes of b,c,w and k.