![](https://s.togetter.com/static/web/img/placeholder.gif)
第64回2の6乗シェル芸勉強会
![](https://s.togetter.com/static/web/img/placeholder.gif)
やったー 太郎->花子 11458 首記の件 花子->太郎 68011 こんにちは 太郎->花子 76307 げんき? 太郎->花子 158677 毎々お世話になります 太郎->花子 251998 twitter.com/amanoese/statu…
2023-04-22 13:33:45![](https://s.togetter.com/static/web/img/placeholder.gif)
cat *a/*64/reply.txt|rev|sort|rev|sed '$d'|xargs -L2|awk -F '[ :-]' '{print $0,($12*72000+$13*3600+$14*60+$15)-($3*72000+$4*3600+$5*60+$6)}'|awk '$0=$4" "$3" "$NF'|sort -k3,3 -n #シェル芸
2023-04-22 13:32:42![](https://s.togetter.com/static/web/img/placeholder.gif)
join -j9 ShellGeiData/vol.64/reply.txt{,} | awk '"Re:"$4==$NF{print $4, $3, $7, $1"T"$2, $5"T"$6}' | teip -f 4,5 -- date -f- +%s | awk '{print $1,$2,$3,($5-$4)/3600}' #シェル芸
2023-04-22 13:34:16![](https://s.togetter.com/static/web/img/placeholder.gif)
cat *a/*64/reply.txt | sed -r 's/$/"/;s/[^ ]* [^ ]*/date -d"&" +"%s/e' | awk -F' (Re:)?' '{a[$3]+=a[$3]?$1:-$1b[$3];b[$3]=b[$3]" "$2}END{for(i in a)if(a[i]>0)print i,b[i],a[i]/3600}' | sort -k4n #シェル芸
2023-04-22 13:34:25![](https://s.togetter.com/static/web/img/placeholder.gif)
やったー 太郎->花子 花子->太郎 3.18278 首記の件 花子->太郎 太郎->花子 22.8919 こんにちは 太郎->花子 花子->太郎 25.1964 げんき? 太郎->花子 花子->太郎 52.0769 毎々お世話になります 太郎->花子 花子->太郎 81.9994 twitter.com/eban/status/16…
2023-04-22 13:34:44![](https://s.togetter.com/static/web/img/placeholder.gif)
こんにちは 太郎->花子 花子->太郎 25.1964 げんき? 太郎->花子 花子->太郎 52.0769 毎々お世話になります 太郎->花子 花子->太郎 81.9994 やったー 太郎->花子 花子->太郎 3.18278 首記の件 花子->太郎 太郎->花子 22.8919 twitter.com/xztaityozx_001…
2023-04-22 13:34:45![](https://s.togetter.com/static/web/img/placeholder.gif)
join -j9 ShellGeiData/vol.64/reply.txt{,} | awk '"Re:"$4==$NF{print $4, $3, $7, $1"T"$2, $5"T"$6}' | teip -f 4,5 -- date -f- +%s | awk '{print $1,$2,$3,($5-$4)/3600}' | sort -k4n : 並べ替えわすれてた #シェル芸
2023-04-22 13:36:50![](https://s.togetter.com/static/web/img/placeholder.gif)
やったー 太郎->花子 花子->太郎 3.18278 首記の件 花子->太郎 太郎->花子 22.8919 こんにちは 太郎->花子 花子->太郎 25.1964 げんき? 太郎->花子 花子->太郎 52.0769 毎々お世話になります 太郎->花子 花子->太郎 81.9994 twitter.com/xztaityozx_001…
2023-04-22 13:37:44![](https://s.togetter.com/static/web/img/placeholder.gif)
awk '!/Re:/{cmd="date +%s -d \""$1" "$2"\"";cmd | getline datetime[$4];close(cmd);fromto[$4]=$3}/Re:/{cmd="date +%s -d \""$1" "$2"\"";cmd | getline d;close(cmd);sub("Re:","",$4);print $4,fromto[$4],$3,(d-datetime[$4])/3600}' ShellGeiData/vol.64/reply.txt | sort -nk 4,4 #シェル芸
2023-04-22 13:39:14![](https://s.togetter.com/static/web/img/placeholder.gif)
やったー 太郎->花子 花子->太郎 3.18278 首記の件 花子->太郎 太郎->花子 22.8919 こんにちは 太郎->花子 花子->太郎 25.1964 げんき? 太郎->花子 花子->太郎 52.0769 毎々お世話になります 太郎->花子 花子->太郎 81.9994 twitter.com/MasWag/status/…
2023-04-22 13:39:44![](https://s.togetter.com/static/web/img/placeholder.gif)
cat *a/*64/reply.txt|rev|sort|rev|sed '$d'|teip -c 1-18 -- date -f- +%s|xargs -L2|awk '$0=$2" "$3" "$4-$1'|sort -nk3,3 #シェル芸
2023-04-22 13:40:25![](https://s.togetter.com/static/web/img/placeholder.gif)
datediff というコマンドがあるらしく気になる木 #シェル芸 manpages.debian.org/testing/dateut…
2023-04-22 13:40:33![](https://s.togetter.com/static/web/img/placeholder.gif)
太郎->花子 やったー 114598 花子->太郎 首記の件 824371 太郎->花子 こんにちは 907187 太郎->花子 げんき? 1874977 太郎->花子 毎々お世話になります 2951998 twitter.com/amanoese/statu…
2023-04-22 13:40:44Q2
平均値ゼロ、標準偏差1の正規分布にしたがう乱数を延々と出力してください。よくわからない人は、0〜1の乱数を12個足して6を引いた値を出力してください。
![](https://s.togetter.com/static/web/img/placeholder.gif)
## Q2 平均値ゼロ、標準偏差1の正規分布にしたがう乱数を延々と出力してくださ い。よくわからない人は、0〜1の乱数を12個足して6を引いた値を出力して ください。 #シェル芸
2023-04-22 13:41:16![](https://s.togetter.com/static/web/img/placeholder.gif)
es|xargs -i bash -c 'awk "BEGIN{srand(${RANDOM}); print rand()*2-1}"' 2>/dev/null|head #シェル芸
2023-04-22 13:45:56![](https://s.togetter.com/static/web/img/placeholder.gif)
cat /dev/urandom | tr -dc '0-9' | fold -b10 | sed 's/^/0./' | paste - - | awk '{print sqrt(-2*log($1))*cos(2*3.141592*$2)}' #シェル芸
2023-04-22 13:46:29![](https://s.togetter.com/static/web/img/placeholder.gif)
#シェル芸 Q2よく分からない人 yes | awk 'BEGIN{srand()}{print rand()}' | awk 'NR%12{printf $1" "}!(NR%12){print}' | awk '{for(i=1;i<=NF;i++){s+=$i};print s-6}'
2023-04-22 13:46:36![](https://s.togetter.com/static/web/img/placeholder.gif)
-1.23813 3.5873 8.09882 14.2051 19.5731 26.5288 31.9976 37.4283 43.0059 49.2956 56.7228 60.2062 66.6771 73.4534 78.6651 twitter.com/papiron/status…
2023-04-22 13:46:44