How to escape backslash in awk?

Follow Icon
Edit IconEdit
Message IconMessage
Report IconReport

Available Answers: 1

Answer #1#
Gwalior, India

1 Answer. In awk strings, backslash is used to introduce C-like escape sequences like \b for backspace, \n for newline, \123 for octal sequences You need \\ for backslash itself. \N itself is not currently a known escape sequence in any awk implementation that I know.

Edit IconEdit
Comment IconComment
Report IconReport

Related Questions


  1. Phone number or email id included in the answer(s) are not verified by us. Before calling on the mentioned number or sending an email do your own research and be confirm you calling or sending mail to right person or company.
  2. Answer(s) may contain affiliate links. By clicking such link, you will be redirected to third party website. If you make any purchase then the answer publisher or we may earn little amount of commission.