I have the following lines:
XYZ2342
ABCD1323
KIL9824
And I would like to remove all letters at the beginning, so I would get for the above example:
2342
1323
9824
I have tried this:
echo "ABC12345" | sed 's/[[:alpha:]]*[[:digit:]]//'
2345
But it also removes the first digit, how can I make sed to delete just the letters (note: they are always ASCII).
I am using FreeBSD sed implementation, in case that is relevant.