6
grep '^[A-Z]' /usr/share/dict/words | wc; grep '^[a-z]' /usr/share/dict/words | wc
5
f(){test `echo $* | tr \ +|bc` -eq 15 || echo dame}; cat data1 | while read l; do f $l; done; for i in 1 2 3; do f $(cut -d\ -f$i data1); done; cat data1 | tr ' ' '\n' | uniq -d || dame
斜めはめんどくさいから諦めた。数学センスのなさがでてる
4
tac data2 | uniq -w1 | tail -n2
uniq -wはシェル芸で覚えた、けどまだ業務では一度も使ってない
2
grep '' /etc/hosts /etc/resolv.conf | sed 's/:/ /' > hoge
■
[shell]第5回シェル芸勉強会ひとりで解いた
所用で参加できなかったので寂しいから解いた
USP友の会第五回シェル芸勉強会問題だけスライド
みんなAWKもりもり書いてるのでAWK縛りですうそです使えないです