I have a string like
rev00000010 and I only want the last number, 10 in this case.
I have tried this:
TEST='rev00000010' echo "$TEST" | sed '/^[[:alpha:]]*/d' echo "$TEST" | sed '/^rev*/d'
both return nothing, although the regex seems to be correct (tried with regexr)