Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

2018-12-19から1日間の記事一覧

sed $'s/regexp/\\\n/g'という記法はANSI-Cのバックスラッシュ記法を適用するbash独自実装である

前の記事で使った sed $'s/発注済/\\\n/g'なる奇怪な実装ですが……こちら、GNUの資料をみると 3.1.2.4 ANSI-C Quoting Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as spec…