StackOverflow 文件 sh 教程 read 命令 逐字讀一行 逐字讀一行 Created: November-22, 2018 $ IFS= read -r foo <<EOF > this is a \n line >EOF $ printf '%s\n' "$foo" this is a \n line 讀取剝離前導和尾隨空格的行read 命令