[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to sed every char



On 2009-07-05 12:18 (+0200), Soren Orel wrote:

> I can sed all the a-b-c-d-e, etc chars like this:
>
> sed "s//[a-z]/g"
>
> but how can I sed all the chars? (numbers, letters, special char)

What do you mean with verb "sed" here. What do you want to do? The
format of sed's "s" command is

    s/regexp/replace/flags

In regexp atom "." matches any character. If you want to match any
non-whitespace then use atom "\S".


Reply to: