On 6/24/09, Neil Bothwick n...@digimed.co.uk wrote:
On Wed, 24 Jun 2009 00:48:07 +0100, Peter Humphrey wrote:
And while I'm at it, how do I change the field
separator from / to enable me to search on that character?
By using something else, you don't need to tell sed, it works it out for
On Wednesday 24 June 2009 02:36:08 Neil Bothwick wrote:
On Wed, 24 Jun 2009 00:48:07 +0100, Peter Humphrey wrote:
I'm reduced to asking a newcomer's question: how can I make sed recurse
down a directory tree?
You don't, that's not sed's job, which is to edit the text you give it.
Use find
On Wednesday 24 June 2009 11:34:18 Peter Humphrey wrote:
On Wednesday 24 June 2009 02:36:08 Neil Bothwick wrote:
On Wed, 24 Jun 2009 00:48:07 +0100, Peter Humphrey wrote:
I'm reduced to asking a newcomer's question: how can I make sed recurse
down a directory tree?
You don't, that's
On Wednesday 24 June 2009 10:56:43 Alan McKinnon wrote:
Possibly you were thinking of grep's recursion switch?
Perhaps. I'm not at my best in the mornings :-(
--
Rgds
Peter
On Wed, 24 Jun 2009 12:03:19 +0100, Peter Humphrey wrote:
Perhaps. I'm not at my best in the mornings :-(
Same here, and it's always morning somewhere :(
--
Neil Bothwick
Windows artificial intelligence: Unable to FORMAT A: Having a go at C:
signature.asc
Description: PGP signature
Peter Humphrey writes:
I'm reduced to asking a newcomer's question: how can I make sed recurse
down a directory tree?
find . -type f -exec sed -i 's/foo/bar/g' '{}' \;
And while I'm at it, how do I change the field
separator from / to enable me to search on that character?
Well, just
On Wednesday 24 June 2009 12:28:05 Alex Schuster wrote:
man sed answers your second question :)
s/regexp/replacement/
Attempt to match regexp against the pattern space. If successful,
replace that portion matched with replacement. The replacement may
contain the special
Peter Humphrey writes:
On Wednesday 24 June 2009 12:28:05 Alex Schuster wrote:
man sed answers your second question :)
s/regexp/replacement/
Attempt to match regexp against the pattern space. If successful,
replace that portion matched with replacement. The replacement may
Am Wed, 24 Jun 2009 15:18:02 +0100
schrieb Peter Humphrey pe...@humphrey.ukfsn.org:
On Wednesday 24 June 2009 12:28:05 Alex Schuster wrote:
man sed answers your second question :)
s/regexp/replacement/
Attempt to match regexp against the pattern space. If successful,
replace
On Wed, Jun 24, 2009 at 9:49 AM, Renat Golubchykragerm...@gmx.net wrote:
Man page is very short. Check the info pages for full documentation.
(Almost all tools from GNU userland have a short man page and a long
info page. At least that is what they say right at the bottom.)
Also, I have these
Hello list,
I'm reduced to asking a newcomer's question: how can I make sed recurse down
a directory tree? And while I'm at it, how do I change the field separator
from / to enable me to search on that character?
I used to have a SED and AWK book, but it seems to have walked; and I
can't see
On Jun 23, 2009, at 6:48 PM, Peter Humphrey wrote:
Hello list,
I'm reduced to asking a newcomer's question: how can I make sed
recurse down
a directory tree? And while I'm at it, how do I change the field
separator
from / to enable me to search on that character?
maybe something like:
On Wed, 24 Jun 2009 00:48:07 +0100, Peter Humphrey wrote:
I'm reduced to asking a newcomer's question: how can I make sed recurse
down a directory tree?
You don't, that's not sed's job, which is to edit the text you give it.
Use find to generate a list of files for sed to work on.
And while
13 matches
Mail list logo