I have a bunch of files scattered across folders in a layout, for example:
dir1/somefile.gif dir1/another.mp4 dir2/video/filename.mp4 dir2/some.file dir2/blahblah.mp4
And I need to find the total disk space used only for MP4 files. This means that it must be recursive in some way.
I looked at du and scrolled things up to grep , but couldn't figure out how to calculate only MP4 files no matter where they are.
If possible, should the readable total disk space be preferably in the UK?
Any ideas? Thanks
source share