# awk: warning: escape sequence '<' treated as plain '>'
时间:2020-01-09 10:42:16 来源:igfitidea点击:
执行命令
echo 'foo bar this that blah' | awk '{gsub("\<regex-word\>", "NEW-WORD");print}'
报错:
awk: warning: escape sequence \' treated as plain >'
如何在类Unix的操作系统下修复此问题?
你也需要去掉反斜杠:
echo 'foo bar this that blah' | awk '{gsub("\<regex-word\>", "NEW-WORD");print}'