пп-мерство
Oct. 9th, 2014 04:01 pm
# uptime
3:42PM up 937 days, 3:29, 0 users, load averages: 0.00, 0.00, 0.00
# dick
( :-) )
# uptime
3:42PM up 937 days, 3:29, 0 users, load averages: 0.00, 0.00, 0.00
# dick
( :-) )
install
надо произвести какие-либо действия,-s
(—strip
и —strip-program
).
# cat > encode.sh
#! /bin/sh -f
iconv -c -f koi8-r -t utf8 $1 /tmp/tmp.$$
mv -f /tmp/tmp.$$ $1
^D
# chmod +x encode.sh
# install —strip —strip-program=./encode.sh file /install/path/file
# 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
# print -l *.txt | xargs —max-procs=4 —max-args=1 proc
# find /etc -xdev -type f -print0 | \
xargs -0 ls -i | \
perl -nle '($a,$b) = split " "; push @{$hash{$a}},$b;
END { while (($a,$b) = each %hash) { print "$a: @$b" if ($#$b > 0); } }'
find /etc -xdev
-- поиск файлов на /etc
.ls -i
-- печать i-node номер и имя файла.perl ...
-- упихивание всего в хеш и вывод в конце только тех имен файлов, у которых имен на один i-node больше одного.