Re: Read a file line by line with spaces within it.



Sorry, a part was missing (see below).

....
while IFS= read -r current_line
do
echo "$current_line" #outputs line
done < "$current_file"


--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.
.



Relevant Pages

  • Re: mv or something else
    ... you want to move all avi, txt,...etc. ... All the commands are tested with bash and GNU tools, ... nonstandard features. ...
    (comp.unix.shell)
  • Re: mv or something else
    ... you want to move all avi, txt,...etc. ... All the commands are tested with bash and GNU tools, ... nonstandard features. ...
    (comp.unix.shell)
  • Re: Why is this not possible?
    ... All the commands are tested with bash and GNU tools, ... nonstandard features. ...
    (comp.unix.shell)
  • Re: grep 2 words
    ... All the commands are tested with bash and GNU tools, ... nonstandard features. ...
    (comp.unix.shell)
  • Re: find & exec for several regexp patterns together
    ... All the commands are tested with bash and GNU tools, ... nonstandard features. ...
    (comp.unix.shell)