equivalent of read -r
what is the equivalent of read -r (solaris command ) in Linux ?
read utility in solaris will read a single line from standard input and -r option is used not to treat backslash (\) as an escape character . |
All the same as far as I know??
Code:
# help read | grep '\-r' |
thanks grail ,
I like to know whether there is any similar command in linux which does the same functionality as read -r in solaris . |
echo "A B C" | read x y z
echo $x $y $z gives A B C in solaris but when i give same in Linux it gives blank. does anyone know how to acheive this in Linux ? ( reading from standard input ) |
Quote:
If you want to keep them you can do something like this: Code:
$ read x y z < <(echo "D E F") |
All times are GMT -5. The time now is 09:07 AM. |