i want to find the total space used for the files owned by me from my current directory.
i have
du -sh `find ./ -user $USER -type f`
which gives
8.0K ./.a
8.0K ./t
4.0K ./cat/A
4.0K ./a
using -s has no effect.
using du -sh by itself includes the space for files not owned by me and also includes space used by folders themselves.
I want to be able to add all of the above and displayed in readable format automatically.
At this stage i am happy to include the space used for folders or not, doesnt matter.
Any tips would be appreciated.