Quote:
Originally Posted by svnpenn
You can actually do this without Bash, you just encode the Carriage Return as %d
|
Please note that the only reason "%d" works (as opposed to "%0d") is because it's at the end of the string.
If you were to do somehting like "foo%Dabc", "%Da" would be replaced with 0xda and you'd lose your "a".
If you were to do something like "foo%Dzabc", "%Dz" would be replaced with 0x0d and you'd lose your "z".