【发布时间】:2017-01-27 06:12:46
【问题描述】:
我有如下字符串,
Abc \ \ <--- This is With space at the end
Abc \ \ <--- This is Without space at the end
Abc\ \
Abc \\
Abc\\
Abc\
Abc \
以上所有字符串的预期结果,
Abc
简而言之,如果在字符串的末尾有任何空格 & \ 的组合模式,那么我想删除它。 我想用 awk 来做这件事。
请帮忙...
【问题讨论】:
-
那么,你有什么尝试吗?