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

前端 未结 0 823
时光取名叫无心
时光取名叫无心 2021-02-13 17:13

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

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

Without the esca

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