Let's say you download some .zip/tar.gz or source-code of a project from somewhere. The result you will get are a random bunch of files, some having code and some having images. Is there a way to get some understanding how much percentage images, media files and how much is a text file ? If there is a tool which does that, please share. If not, how would one go in crafting a script or something which does that ?
Update - giving more information due to comments received.
Just to state an example, this is what I'm talking about -
┌─[shirish@debian] - [~/games/I-Nex] - [10054]
└─[$] [$] ll -h
total 236K
drwxr-xr-x 3 shirish shirish 4.0K 2016-11-13 21:25 debian
drwxr-xr-x 3 shirish shirish 4.0K 2016-11-13 19:16 I-Nex
drwxr-xr-x 2 shirish shirish 4.0K 2016-11-13 19:16 JSON
drwxr-xr-x 3 shirish shirish 4.0K 2016-11-13 02:12 dists
-rw-r--r-- 1 shirish shirish 7.8K 2016-11-13 02:12 i2c_smbus.rules
-rw-r--r-- 1 shirish shirish 1.4K 2016-11-13 02:12 i-nex.mk
drwxr-xr-x 2 shirish shirish 4.0K 2016-11-13 02:12 manpages
drwxr-xr-x 2 shirish shirish 4.0K 2016-11-13 02:12 pixmaps
-rw-r--r-- 1 shirish shirish 97 2016-11-13 02:12 release.conf
-rw-r--r-- 1 shirish shirish 280 2016-11-13 02:12 requirements.md
-rwxr-xr-x 1 shirish shirish 1.4K 2016-11-13 02:12 changelog.awk
-rwxr-xr-x 1 shirish shirish 2.5K 2016-11-13 02:12 Makefile
-rw-r--r-- 1 shirish shirish 6.6K 2016-11-13 02:12 README.md
-rw-r--r-- 1 shirish shirish 176K 2016-11-13 02:12 Changelog.md
Now while this example is simple as only pixmaps directory has the pictures/images, it doesn't tell how much space is being consumed by text files and text directories and how much by pixmaps.
fileto determine the basic file type and extract the size from the file listinglsand sum it up based on the file's extension. Now show us what you did so we can help you. This site is not a free script writing service and you need to be specific on where you get stuck.