2017-03-26から1日間の記事一覧
sed -re 's/(.+)(.)/\1/g' atapon.txt こういう文字列置換,初めは慣れなくて perl -mutf8 -nle 's/(.+)(.)/\1/g' -p atapon.txt とかやっちゃうけど,これぐらいならわざわざ Perl を使うまでもなくて,sed で十分という気づきを得られる. -r を付ける…
sed -re 's/(.+)(.)/\1/g' atapon.txt こういう文字列置換,初めは慣れなくて perl -mutf8 -nle 's/(.+)(.)/\1/g' -p atapon.txt とかやっちゃうけど,これぐらいならわざわざ Perl を使うまでもなくて,sed で十分という気づきを得られる. -r を付ける…