Login
Immutable PageDiscussionInfoAttachments
Diff for "iz/Memo/UnixSeminar2013演習の回答"

MMA
Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2013-05-17 19:14:43
Size: 1240
Editor: iz
Comment:
Revision 5 as of 2013-05-17 19:39:02
Size: 1320
Editor: iz
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl iz:read,write,delete,revert,admin Known:write,delete,revert,admin All:
Line 21: Line 23:
== wc ==  == wc ==
Line 36: Line 38:
== Send the signal ==  == Send the signal ==
Line 54: Line 56:
zgrep nomeaning /ml/mma-active/article/*_Apl/*.gz | wc -l zgrep nomeaning /ml/mma-active/article/2013_Apl/*.gz | wc -l

fileの中身

cat ~nomeaning/Public/unix-seminar/file.txt

find the keyword

find ~nomeaning/Public/unix-seminar/k/ -type f -name '*keyword*'

grep the keyword

find ~nomeaning/Public/unix-seminar/k/ -type f | xargs grep keyword

Kernel version

uname -r 

wc

grep a\\.out ~nomeaning/Public/unix-seminar/file2.txt | wc -l

md5sum

md5sum ~nomeaning/Public/unix-seminar/file.txt  

long file

head -12345321 ~nomeaning/Public/unix-seminar/lf.txt | tail -1

Send the signal

cp ~nomeaning/Public/unix-seminar/a.out a.out && ./a.out &

killall -SIGUSR1 a.out

Languages

for lang in c cc cpp rb py hs java
do
    echo $lang
    find ~nomeaning/Public/unix-seminar/langs/ -type f -name \*\.$lang | xargs wc -l | tail -1
done

Active!

zgrep nomeaning /ml/mma-active/article/2013_Apl/*.gz | wc -l

Mailer

zcat /ml/mma-active/article/2012_*/*.gz | grep -E \^\(X-Mailer\|User-Agent\) | cut -d ' ' -f 2 | ruby -e 'hist = Hash.new(0); STDIN.read.split("\n").each{|mailer| hist[mailer] += 1}; hist.each {|k, v| puts "#{k} #{v}"}' | sort -rn -k2

iz/Memo/UnixSeminar2013演習の回答 (last edited 2013-05-18 00:15:32 by iz)