psychic stalker
(?)Community Member
- Report Post
- Posted: Thu, 07 Feb 2013 08:12:53 +0000
The20
psychic stalker
The20
Edit: On a side note, do you guys happen to know the average length of file names on your systems? Just a little something i would like to know. For me it was about 20 characters (OS is Windows).
(sudo find / -not -path 'lost+found' -exec basename '{}' ';' | while read l; do echo -n "$l" | wc -c ; done | awk 'BEGIN{n=0;t=0} {n=n+$1; p=p+1;} END{print n " " p}'; echo "/p" ) | dc
...
...
I'll let you know if it ever finishes.
What's the t good for, though? Was that supposed to be a p?
(11:52:%)── (sudo find / -not -path 'lost+found' -exec basename '{}' ';' | while read l; do echo -n "$l" | wc -c ; done | awk 'BEGIN{n=0;t=0} {n=n+$1; p=p+1;} END{print n " " p}'; echo "/p") | dc
17
(21:59:%)──
Only took 2 and a half days, but there you go. 17. Across all mounted drives and both user and system directories. Probably heavily biased by both system files (less than 10 chars) and files with MD5 and SHA-1 sums for names (36 and 44, respectively), of which I have many. 17
(21:59:%)──