I'm using this sed command to replace the string "##INFO=<ID="
with "\t%"
:
bcftools view -h /data/ExAC.r1.sites.vep.vcf | grep "^##INFO=<ID=" | sed $'/^##INFO=<ID=/{ s//'\t%INFO' /; s/,.*//; p; }''
but what I get is exactly my desired output, but instead of a backslash, it doesn't print anything. If I remove the single quotes around \t%INFO
in the sed command, it automatically tabs the output, so I don't want that either.
How can I escape the backslash so that it just prints a backslash?