Re: need help with sed
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
How about
echo 2008:04:23 | sed 's/://g'
The 'g' causes all instances of the ':' character on the line to be
replaced. Normally it just replaces the first instance of a character on
the line.
John Cornelius
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe:
https://www.redhat.com/mailman/listinfo/fedora-list
Relevant Pages
- vi editor FAQ (Frequently Asked Question List), Part 2/2
... has the UCB distribution of vi, and lots of useful macros. ... m0 is the ex command to move the line to line 0. ... Swap character and one vertically above: ... A non-visual editor under Unix. ... (comp.unix.questions) - vi editor FAQ (Frequently Asked Question List), Part 2/2
... has the UCB distribution of vi, and lots of useful macros. ... m0 is the ex command to move the line to line 0. ... Swap character and one vertically above: ... A non-visual editor under Unix. ... (comp.unix.questions) - vi editor FAQ (Frequently Asked Question List), Part 2/2
... has the UCB distribution of vi, and lots of useful macros. ... m0 is the ex command to move the line to line 0. ... Swap character and one vertically above: ... A non-visual editor under Unix. ... (comp.unix.questions) - vi editor FAQ (Frequently Asked Question List), Part 2/2
... has the UCB distribution of vi, and lots of useful macros. ... m0 is the ex command to move the line to line 0. ... Swap character and one vertically above: ... A non-visual editor under Unix. ... (comp.unix.questions) - vi editor FAQ (Frequently Asked Question List), Part 2/2
... has the UCB distribution of vi, and lots of useful macros. ... m0 is the ex command to move the line to line 0. ... Swap character and one vertically above: ... A non-visual editor under Unix. ... (comp.unix.questions) |
|