ocehb: (Default)
[personal profile] ocehb

# file -N $HOME/* | \
  awk -F: '{ type[$2]++ } END{ for (i in type) print type[i],i }' | \
  sort -rn | head -10
128  directory
50  ASCII text
14  ASCII English text
10  ISO-8859 text
6  Lisp/Scheme program text
5  data
4  shell archive or script for antique kernel text
4  Microsoft Installer
3  gzip compressed data, from Unix, last modified
3  ASCII text, with very long lines


ps. под "Microsoft Installer" file понимает .doc файлы.

Date: 2008-08-01 08:18 pm (UTC)
From: [identity profile] myaw-myaw.livejournal.com
28 directory
22 ASCII text
20 ISO-8859 text
18 perl script text executable
16 Zip archive data, at least v2.0 to extract
14 ASCII English text
13 ISO-8859 English text
12 Zip archive data, at least v1.0 to extract
9 PDF document, version 1.5
7 RIFF (little-endian) data SoundFont/Bank

Date: 2008-08-01 09:00 pm (UTC)
From: [identity profile] myaw-myaw.livejournal.com
а по айпи гадать умеешь?:)

Date: 2008-08-02 05:15 pm (UTC)
From: [identity profile] madbox-lj.livejournal.com
здорово! но так, имхо, интереснее(никто ведб не против, правда?):
find $HOME -name ".*" ! -prune -or -type f ! -name ".*" -exec file {} \; | awk -F: '{ type[$2]++ } END{ for (i in type) print type[i],i }' | sort -rn

71 ASCII C++ program text
44 ASCII English text
43 a ruby script text executable
37 JPEG image data, JFIF standard 1.01
33 a /usr/bin/ruby script text executable
14 HTML document text
9 UTF-8 Unicode text
9 a /usr/bin/ruby1.8 script text executable
7 PDF document, version 1.6
6 PDF document, version 1.4
...

правда C++ program text, это я так понмаю все, что содержит слово class и '{}'

Date: 2008-08-04 12:51 am (UTC)
From: [identity profile] wom.livejournal.com
44 gzip compressed data, from Unix, last modified
26 ASCII text
18 directory
11 ISO-8859 text
10 data
10 JPEG image data, EXIF standard 2.2, baseline, precision 0, 4360x768
9 empty
9 bzip2 compressed data, block size = 900k
8 ASCII C program text
7 XML

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 10th, 2025 08:34 pm
Powered by Dreamwidth Studios