Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .