Cat with new line
Posted
by murugaperumal
on Stack Overflow
See other posts from Stack Overflow
or by murugaperumal
Published on 2010-03-17T06:59:27Z
Indexed on
2010/03/17
7:01 UTC
Read the original article
Hit count: 295
bash
My input file content is
welcome
welcome1
welcome2
My script is
for groupline in `cat file`
do
echo $groupline;
done
I got the following output.
welcome welcome1 welcome2
Why it is not print the empty line. I want the reason.
© Stack Overflow or respective owner