Switch to single quotes in contexts where we may want to use '\'
Inside double quotes, backslash is an escape character. Hence, it is cleaner to use single quotes where backslashes may occur. This includes pattern strings for print, grep, and sed.
Please register or sign in to comment