- ryuichiueda
- 6938
- 15
- 0
- 0
とりあえず粗くまとめて公開しました。 #シェル芸 jus共催 第50回記念我々は50回も何をやってるんだろうシェル芸勉強会 - Togetter togetter.com/li/1619847 @togetter_jpより
2020-11-08 09:26:41いまさら Mac の nl の -i と -v オプション挙動を確かめてるんだけど、どちらも負の値に対応してる一方で、オーバーフローしたままカウンタがぐるぐる回る #シェル芸
2020-11-08 09:32:16BSD系のシンプルな実装、それはそれでいいと思うけど、表示桁数(-wオプション、デフォルト6桁)を超えると上位の桁が表示されないのは微妙かも… #シェル芸
2020-11-08 09:36:39echo uuuuuunnnnnnnkkkkkkkkkkkkkkkkkkoooooooooooo | tr -s ounk #シェル芸
2020-11-08 10:10:01昨日シェル芸勉強会で紹介した天才的コマンドのqtfに競合しそうなコマンドを友達から教えてもらったのでそのうち試すかな……
2020-11-08 10:45:20( time yes | head -n10000000 | nl -bn >/dev/null ) 2>&1; ( time yes | head -n10000000 | nl >/dev/null ) 2>&1 #シェル芸
2020-11-08 11:26:12real0m0.842s user0m0.658s sys0m0.211s real0m2.339s user0m2.283s sys0m0.245s twitter.com/Carol_815/stat…
2020-11-08 11:26:28( time yes | head -n10000000 | cat >/dev/null ) 2>&1; ( time yes | head -n10000000 | cat -n >/dev/null ) 2>&1 #シェル芸
2020-11-08 11:27:17real0m0.177s user0m0.033s sys0m0.065s real0m0.266s user0m0.254s sys0m0.067s twitter.com/Carol_815/stat…
2020-11-08 11:27:269999985 real0m4.393s user0m5.445s sys0m0.837s twitter.com/eban/status/13…
2020-11-08 12:42:15echo Data-Driven Documents | grep -o 'D' | uniq -c | awk '{print $2$1}' #シェル芸
2020-11-08 12:56:12coreutils の expr と factor が、いつのまにか全ての環境で GNU MP(多倍長整数が扱える算術ライブラリ)を利用するようになってるな… Ubuntu 系のディストリでも次版以降を取り込んだ時点で、デカい素数が計算できるようになるはず #シェル芸
2020-11-08 13:29:15昨日のシェル芸勉強会での @.amanoese さんの発表が衝撃的すぎたので、突貫でuntuberになれるページを作った。こちらはシェル芸でもないですし昨日のあの発表のクオリティには全然届きませんが…… theoremoon.github.io/untuber/ pic.twitter.com/wJkomP9CNq
2020-11-08 15:27:10おおぉ全部JavaScriptで書いたらこんなに速いのか! どう考えてもシェル芸でやることでは無かったなぁ…無理やり過ぎた……
2020-11-08 17:18:41seq 10 | tr "\n" "+" | sed "s;+$;\n;g; s;^;echo ;g" | tee >(cat 1>&2) | bash | bc #シェル芸
2020-11-08 17:56:10seq 10 | tr "\n" "+" | sed "s;+$;\n;g; s;^;echo ;g" | bash | pee cat bc #シェル芸
2020-11-08 19:04:55