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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -