On Sat, Aug 31, 2019 at 02:17:30PM +0200, Computer Planet wrote: > Yes, something like this > $ sed -E 's/(.*config=).*/\1/' > but something I had already tried but not work...
Well, for me it works: echo "some text before config=mumble mumble" | sed -e 's/\(^.*config=\).*/\1/' => some text before config= (note that I anchored the regexp at the beginning of the line with ^, but that's not strictly necessary. It works without, too). Cheers -- t
signature.asc
Description: Digital signature