On Tue, May 3, 2016 at 10:44 PM, Philip Rhoades <p...@pricom.com.au> 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?
>
> Thanks,
>
> Phil.
> --
> Philip Rhoades

What about adding the "g" qualifier and substituting "*" for "+"?  I
didn't try this, just wondering...sed 's/[0-9+]//g'

HIH,
Ken Wolcott
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
http://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
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

Reply via email to