Re: Problem with positional output
"Michelle Konzack [email protected] [sed-users]" <[email protected]> Mon, 14 Nov 2016 14:09:17 +0100
| Newsgroups | gmane.editors.sed.user |
|---|---|
| Message-ID | <[email protected]> |
Grmpf!
Now I have to reply to myself!
On 2016-11-14 14:03:50 Michelle Konzack hacked into the keyboard:
> Hello *,
>
> after 4 years of Linux/OSS abstinence I am back and I run into troubles,
> because I have forgotten ho to get values from a string...
>
>
> The string has 4 parameters, deperated by the | sign and I like to get
> it with something like
>
> echo "${RETVAL}" |sed 's!(.*)|(.*)|(.*)!$1!'
This is now working with:
echo "${RETVAL}" |sed 's!\(.*\)|\(.*\)|\(.*\)!\1!'
Greetings
--
Michelle Konzack ITSystems
GNU/Linux Developer 0033-6-61925193