need help with sed

wwp subscript at free.fr
Mon Jun 30 16:30:19 UTC 2008


Hello Guillaume,


On Mon, 30 Jun 2008 13:58:29 +0200 Guillaume <guillaume.chardin at gmail.com> wrote:

> Hi,
> 
> When I run this command:
>      echo  2008:04:23 | sed 's/://'
> The result is
>      200804:23
> 
> I expect to have this :
>      20080423
> 
> What is wrong with my very simple regexp  ':' why all occurence of the
> char ':' are not deleted ?
> 
> its make me crazy, can someone help me ?
> 
> Thanks

For this exact same purpose - removing all occurrences of some specific
char(s) - you could have used `tr`, like in:

# echo 2008:04:23 | tr -d :


Regards,

-- 
wwp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080630/2f4c9cb5/attachment-0001.sig>


More information about the fedora-list mailing list