need help with sed

laurence orchard laurence at orchards.org.uk
Mon Jun 30 12:00:57 UTC 2008


Guillaume 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
try sed 's/://g'




More information about the fedora-list mailing list