David Chapman wrote on Wed, Jan 04, 2012 at 16:11:27 -0800: > #!/bin/bash -f > sed 's/\r//g' $1 > tmpfile > > Rather than use a special character, I used the shell's escape sequence.
No you didn't. The single quotes protect the \ and it is passed literally to sed's argv[1]. Daniel (/bin/bash != /bin/sh)