unix - How do I get the find command to print out the file size with the file name? -


if issue find command follows:

$ find . -name *.ear 

it prints out:

./dir1/dir2/earfile1.ear ./dir1/dir2/earfile2.ear ./dir1/dir3/earfile1.ear 

what want 'print' command line name , size:

./dir1/dir2/earfile1.ear  5000 kb ./dir1/dir2/earfile2.ear  5400 kb ./dir1/dir3/earfile1.ear  5400 kb 

find . -name '*.ear' -exec ls -lh {} \; 

just h jer.drab.org's reply. saves time converting mb mentally ;)


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -