「cat test.file」を使用すると、どのようにファイルから読むときにバックスラッシュを維持するには?
printf "This is a test log %d \n, testid";
1
2
が表示されます。bashファイルを使用すると、
IFS=""
while read data
do
echo "$data"
done << test.file
printf "This is a test log %d n, testid";
1
2
行った。
"\"とスペースを同時に使用できる方法はありますか?
私は '
'インフォbash'、 "読み" commmandの検索あなたが意味を考えます: "バックスラッシュ文字 '\'を使用して、次の文字読み取りと行継続のための特別な意味を削除できます。 –