bash: match single- or double-quoted words, like 'foo' or “bar”

前端 未结 0 1482
陌清茗
陌清茗 2021-02-13 17:18

A bash script from a book named Classic Shell Scripting is shown below:

#! /bin/sh - 
grep \\(["\']\\).*\\1 text
# script 1

Without the esca

相关标签:
回答
  • 消灭零回复
提交回复
热议问题