9月末に発売されたシェル芸本の続きです。
前回はこちら
問題146
$ git branch --no-merged=main -r | xargs -n1 -I@ zsh -c "git log -1 --since $(date -d '30 days ago' +%F) @ | grep . &> /dev/null || {echo branch @; git log @ -1 | head -n3}" | sel --remove-empty 2: | paste - - - - -d ' '
問題147
$ cat o | grep -P "[\p{Hiragana}\p{Katakana}\p{Han}]+" | sd '<[^>]+>' '' | sed '/^$/d' | mecab | sel -gd\\s+ 1 | grep -v EOS | sort | uniq -c | sort -rn | head 89 の 88 シェル 85 芸 74 が 72 。 69 月 66 日 51 会 43 勉強 42 で
問題148
$ grep line_cd o -A1 | sd '<[^>]+>' '' | awk '{print $1}' | grep -v -- -- | paste - - | grep 京急本線 27001 京急本線 $ http http://file.ueda.tech/eki/l/27001.xml > o $ cat o | grep station_name | sd '<[^>]+>' '' | awk '{print $1}' 泉岳寺 品川 北品川 新馬場 青物横丁 鮫洲 立会川 大森海岸 平和島 大森町 梅屋敷 京急蒲田 雑色 六郷土手 京急川崎 ...
問題149
$ curl wttr.in/Shizuoka Weather report: Shizuoka \ / Clear .-. +7(5) °C ― ( ) ― ↘ 10 km/h `-’ 10 km / \ 0.0 mm ...
問題150
$ http https://gihyo.jp/magazine/SD/backnumber > o $ cat o | grep 品切 -B4 | nkf -Lu | sd '<[^>]+>' '' | sed '/^$/d' | grep -v -- -- | paste - - - | sort -u Software Design 2020年10月号 2020年9月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2020年11月号 2020年10月17日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2020年12月号 2020年11月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2020年6月号 2020年5月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2020年7月号 2020年6月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2020年8月号 2020年7月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2020年9月号 2020年8月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年10月号 2021年9月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年11月号 2021年10月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年12月号 2021年11月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年1月号 2020年12月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年2月号 2021年1月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年3月号 2021年2月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年4月号 2021年3月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年5月号 2021年4月16日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年6月号 2021年5月18日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年7月号 2021年6月17日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年8月号 2021年7月16日発売 定価1,342円(本体1,220円+税10%)[品切] Software Design 2021年9月号 2021年8月18日発売 定価1,342円(本体1,220円+税10%)[品切] $ dateutils.dseq --format "%Y/%m https://gihyo.jp/magazine/SD/archive/%Y/%Y%m" 2020-01-01 1mo 2020-12-01 | while read YM URL; do curl "$URL" | nkf -Lu | grep ございません &> /dev/null && echo $YM;done