Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「>」を使用してファイルを出力しますが、その形式が好きではありません。レイアウトを変更したいのですが?例: ラップの後ろの特別な文字列
ファイルは次のようになります。
#0 xxxxxxxxxxxxxx #1xxxxxxxxxxxxxxxxx #2xxxxxxxxxx
私はそれが次のようになりたい:
#0 xxxxxxxxxxxx #1 xxxxxxxxxxxx #2 xxxxxxxxxxx
# 文字の前に改行を追加するこのロジックを試すことができます。
echo "#0 xxxxxxxxxxxxxx #1xxxxxxxxxxxxxxxxx #2xxxxxxxxxx" | sed 's/\#/\n#/g'