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

MMA
Differences between revisions 1 and 2
Revision 1 as of 2013-05-17 19:14:43
Size: 1240
Editor: iz
Comment:
Revision 2 as of 2013-05-17 19:17:46
Size: 1319
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:

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/*_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)