$ cat tmp.txt \hello
$ sed 's/^\\//' tmp.txt hello
#!/bin/sh tmp=`cat tmp.txt | sed 's/^\\//' ` echo $tmp
$ sh and.sh sed: -e expression #1, char 6: unterminated `s' command