我有一个文件file.txt
,内容如下
i love this world
I hate stupid managers
I love linux
I have MS
当我执行以下操作时:
for line in `cat file.txt`; do
echo $line
done
它提供类似的输出
I
love
this
world
I
..
..
但是我需要像下面这样的整行输出 - 有什么想法吗?
i love this world
I hate stupid managers
I love linux
I have MS