Re: sed numbered fields don't start from parenthesis

Andreas Schwab <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
blind Pete <[email protected]> writes:

> $ echo 28th_September_2014 | sed "s/\(sep\).*/\1/i"
> 28th_Sep

The pattern matches "September_2014", which is replaced with "Sep".
Everything else remains untouched.

Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.