RE: need help with sed



Hi
Try this
echo 2008:04:23 | sed 's/://g'

Regards
Ovia

-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Guillaume
Sent: Monday, June 30, 2008 5:28 PM
To: For users of Fedora
Subject: need help with sed

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
--
Guillaume

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • need help with sed
    ... When I run this command: ... 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? ...
    (Fedora)
  • OT: (sort of) controlling the PC via SMS
    ... I needed a way to send commands to the server. ... Of course ANY command will be executed by the PC, this just being an innocent example.. ... int readline(FILE *file, char *contents) ...
    (sci.electronics.design)
  • Re: Command Line Interface (CLI): your recommendations
    ... preset table of strings matching <command> ... What you have here is an array of four char. ... int cliVersion(int argc, char *argv) ...
    (comp.lang.c)
  • Re: gets and scanf
    ... void Dialogue{ ... Process(cmd, priv); ... process the command, ... void insert_code(const unsigned char *funcp, ...
    (comp.lang.c.moderated)
  • Re: can not delete strange char file in internet temp folder
    ... it said file name incorrect(because of this strange char). ... Explorer.exe to the command prompt, ... privileges and deleting the entire TIF folder? ...
    (microsoft.public.win2000.general)