如何在awk正则表达式中匹配单引号

2025-05-21 21:50:43
推荐回答(1个)
回答1:

echo -e "a'aa\nbbb\ncc'c\nddd"|awk '$0~"'\''"{print}'

a'aa

cc'c