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.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org