I'm using Bash and
\\+ works with
grep but not with
For example if I do
echo "abbbbc"| sed -e s/ab\\+c/def/
I obtain this result :
I tried with
' or with
s/ab\\+c/def/, I obtain the same result.
but if I replace
*, I obtain :
I have to change
If I do
echo ">Atab_TR4682|c0_g1_i1|m.14206" | sed -e "s/>*\\([[:alpha:]]\\\*)_.\*/\1/g"
Atab_TR4682|c0_g1 probably because
* could also be used for 0 iteration, but if I replace
\\+ it doesn't work at all..
Does anyone have an explanation?