Hi Todd, Steve,

> Us raw input instead:
> 
>     while read -r line; do echo ${line}; done < somefile
> 
> Then, given that somefile contains:
> 
>     \
>     \\
>     \\\
>     \\\\
> 
> you will get exactly that as output. Use "help read | less" at the
> bash command line for more info.

 Just the switch I was looking for. Tried man read, but that doesn't state the 
-r option. Guess I'll have to use help for bash internals. Thanks.
 Still leaves me with the question whether I can pipe command output into a 
while loop. I'll have a look at the for loop as well.

Bye,
Leonard.




-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to