[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed: Invalid content of \{\}
From: |
Reuti |
Subject: |
Re: sed: Invalid content of \{\} |
Date: |
Sun, 18 Apr 2021 18:35:17 +0200 |
> Am 18.04.2021 um 18:18 schrieb michael-franzese@gmx.com:
>
>
>
> Am trying to capture tho string within {}, but am getting
>
> sed: -e expression #1, char 19: Invalid content of \{\}
> sed: -e expression #1, char 19: Invalid content of \{\}
> sed: -e expression #1, char 19: Invalid content of \{\}
>
>
> a="{12..30..5}"
> fa=`echo $a | sed 's/.*(\{.*\}).*/\1/g'`
fa=`echo $a | sed 's/.*{\(.*\)}.*/\1/g'`