I have a grep result like this
Nov-06-22 00:01:16 id-03674-09704
Nov-06-22 00:01:16 id-03642-04246
and I need to remove from result the id-.....-.....
part.
I am using this:
grep file.txt | sed 's/ id-(\d){5}-(\d){5}/ /g'
but it returns this
Nov-06-22 00:01:16 id-03674-09704
Nov-06-22 00:01:16 id-03642-04246
I checked the regex id-(\d){5}-(\d){5}
and it should be ok.
Why sed
is not replacing the grep result?