Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way to see the percentage of the filtetypes shared on dropbox? I mean, how many music files, how many zip files, how many rar files etc.

Both the figures themselves and percentages would be great.

I hope it's not too much to ask for,

Thank you

share|improve this question
1  
Shared as in public, with other users, or all files on your Dropbox account? –  iglvzx Dec 23 '11 at 18:42
    
overall usage statistics. Not necessarily in the public folder but it could be a great start. –  vondip Dec 23 '11 at 19:48
1  
on which OS do you run dropbox. there may be OS-related tools that can do the job for you. –  tuergeist Dec 26 '11 at 8:02
    
I am running on windows –  vondip Dec 27 '11 at 0:13
add comment

1 Answer 1

up vote 1 down vote accepted

On the command line, go to your Dropbox folder, then type the following command:

find . -name "*.*" | gawk -F. '(NF>1) {exts[$NF]++} END {for (ext in exts){printf "%s: %s files\n", ext, exts[ext]}}'

It will show the number of files for each extension, for instance:

mp3: 243 files
txt: 832 files
rar: 9 files
[...]

If you are on Windows, you might have to install Cygwin to be able to run this command.

To convert to percentages, use a spreadsheet program like OpenOffice Calc.

share|improve this answer
    
I believe that if you're going to use gawk, its included in unxutils and GOW , should there be a need for simpler lighter standalone alternatives to cygwin –  Journeyman Geek Feb 17 '12 at 7:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.