[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ascii characters in echo statements
I am trying to write a shell script that uses:
echo "set w4day='ls *.4 | cut -d . -f 1-5'" > bk_$domain.sh
So, when I put it into my shell script, I have to translate some
characters as so:
echo "set w4day=\140ls \052.4 | cut -d . -f 1-5\140"
Now, the * comes out just fine, however the ' symbols, marked as \140,
just don't come out correctly, in fact, they translate verbatim, as a
slash followed by 1, 4, and a 0.
Why is this?
--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.