On 05/04/2016 12:44 AM, Philip Rhoades wrote:
People,
This behaves as expected:
echo 'This is a test 12335 and 669384 535xy4' | sed 's/[0-9]*//g'
but I would expect this:
echo 'This is a test 12335 and 669384 535xy4' | sed 's/[0-9]*//'
to delete the first string of digits but it doesn't do anything . .
clarification from a sed guru?
[0-9]* means zero or more digits. [0-9][0-9]* would
be one or more digits
David
Thanks,
Phil.