#!/bin/sh
cat something | \
grep sameline
#!/bin/sh
cat something | grep sameline
Maybe you try crochet work. That might be within the reach of your capabilities.Can I escape it in some way?
I actually need a backslash...sed
requires it to create newlines. Can I escape it in some way?
sh
man page: "If the delimiter as specified on the initial line is quoted, then the here-doc-text is treated literally,"$ cat <<"EOF" >test
> hello\
> \
> world\
> EOF
$ cat -e test
hello\$
\$
world\$
$ cat <<EOF >test
> hello\\
> \\
> world\\
> EOF
$ cat -e test
hello\$
\$
world\$