[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to match regex in bash? (any character)
From: |
Andreas Schwab |
Subject: |
Re: How to match regex in bash? (any character) |
Date: |
Mon, 03 Oct 2011 13:48:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Stephane CHAZELAS <stephane_chazelas@yahoo.fr> writes:
> The problem and confusion here comes from the fact that "\" is
> overloaded and used by two different pieces of software (bash
> and the system regex).
That's nothing new. The backslash is widely used as a quote character
in several languages, which requires two levels of quoting if one of
these languages is embedded in another one.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."