I'm cat
ing a file, and the output is something like this:
Help me my friend
Temptation
Sorrow
True Love
Vanilla Sky
I was here
SOS
...
I'm trying to create directory of all of these lines.
What I have tried is:
mkdir `cat x.txt`
But the result is a mess! For instance, I was here
will be split into three directories like I
, was
, and here
. How can I fix this??
Thanks in advance.
<your_command> | while ...; do ...; done
– heemayl Aug 29 '16 at 13:20