サクサク読めて、アプリ限定の機能も多数!
タグをすべて表示
タグの絞り込みを解除
$ cat hoge.txt 111 222 333 $ cat hoge.txt | tr \\n \\ | sed -e 's/\\/\\n/g' 111\n222\n333\n
hoge hoge hoge hoge hoge hoge という内容のhoge.txtを sed 's/\n/ /g' しても置換されないのですが、その理由を教えていただきたいです sed 's/ /\n/g' の場合は正常に置換されているのですが...
# GNUのsedは-z, --null-dataオプションを指定すると、行の分割を\nでなくnull文字で行ないます。 sed -z 's/\n/ /g' hoge.txt
ランキング
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く