永发信息网

It just give following message: gawk: warning: escape sequence `\'' treated as plain `&#

答案:2  悬赏:80  手机版
解决时间 2021-03-24 22:29
  • 提问者网友:回忆在搜索
  • 2021-03-24 12:54
It just give following message: gawk: warning: escape sequence `\'' treated as plain `''
最佳答案
  • 五星知识达人网友:白昼之月
  • 2021-03-24 14:07
Different shell, different awk version, different result.
ksh, bash, which one is on your Linux server?

Please have a look at the thread below:
http://bbs.chinaunix.net/thread-1554332-1-1.html

Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, \, and, when history expansion is enabled, !. The characters $ and ` retain their special meaning within double quotes. The backslash retains its special meaning only when followed by one of the following characters: $, `, ", \, or . A double quote may be quoted within double quotes by preceding it with a backslash. If enabled, history expansion will be performed unless an ! appearing in double quotes is escaped using a backslash. The backslash preceding the ! is not removed.追问Thanks for your answer. Currently we use ksh, and use gawk
全部回答
  • 1楼网友:纵马山川剑自提
  • 2021-03-24 15:01
这是什么东西我不知道
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯