n your TEMP (in my case C:\Windows\temp)
directory that it doesn't clean up. I had 4 of these.
HTH
--
Peter S Tillier
"Who needs perl when you can write dc, sokoban,
arkanoid and an unlambda interpreter in sed?"
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-s
original mail:
Q1. Querying info sed reveals the expression matcher to be "greedy",
matching the longest possible string. Is there a way to make it match
the shortest possible, so that echo aaabbbccc | sed 's/^.*b//' (altered
but similar) grabs aaab not aaabbb?
Likewise here: &quo
function that's what I'd do.
>
> Brian
The GNU sed maintainer Paolo Bonzini also maintains a version of sed
called ssed (super sed) that does support PCREs in addition to BREs and
EREs (which are both now supported in GNU sed 4.x+).
For more on sed:
http://sed.sourceforge.net/
ated letter
> (like "aa"), remove half of them (leaving, say, "a").
This may interest some of you. Alan posted it in comp.lang.awk
Peter S Tillier
"Who needs perl when you can write dc, sokoban,
arkanoid and an unlambda interpreter in sed?"
--
Unsubscribe in
results.
>
> Any ideas or other things I should check?
I guess you have checked that your Windows ME has all the latest service
packs and/or patches applied? Don't know if this will help, but it may
be worth a shot.
--
Peter S Tillier
"Who needs perl when you can write dc, sokoba
7; | sed -e 's/^T\W*\(\w*\)/FuncSymbol(\1),/
>
> echo 'T _atan2' | sed -e
's/^T[[:space:]]*\([[:alnum:]_]*\)/FuncSymbol(\1),/
>
> The first one used to work, now only the second one does. This is not
good.
>
> David
>
I reported this to Paolo Bonzini (GNU sed
\r" | gawk '{print $0, NF}'
4b c
$
is correct under UNIX/Linux.
In this case the "\r" causes the OFS space and the digit 4
to overwrite the "a " of "a b c ".
By using the sed command that you mention you are using it
to remove the "\r"
- Original Message -
From: "Dwight Neal" <[EMAIL PROTECTED]>
To: "'Peter S Tillier'" <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 11:05 PM
Subject: RE: Sed Script works in 3.02-1, fails in 4.0.1-1
> I included the WRONG sed script w
ion completes, click here <\/a>to return.<\/font><\/BLOCKQUOTE>
then you don't really need the "1," part of the address.
If you only want to change the first occurrence then you would
need to reorganize the script (or use another tool which makes
it easier to
piled RE and there isn't one. This is an error in
your script, not sed 4.0.1-1 and should also give the same error
message with sed 3.02-1.
As Randall says using / separators in s commands when slashes
are part of the RE is tricky. You can use pretty much any
separator other than a backslash.
his will fail if any of the
files have spaces in their names, because you are using $1 as the
name of the file to pass to notepad. It would be more sensible to
use $0 and to quote it when passing it to notepad, i.e.:
system ("notepad \"" $0"\" &")
Oh, and aw
downloads and the User Guide without finding it.
TIA
Peter
--
Peter S Tillier[EMAIL PROTECTED]
[EMAIL PROTECTED]
Opinions expressed are my own and not necessarily
those of my employer.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug
setup.exe to your
> system. Once you've downloaded setup.exe, run it and select "Base"
and
> then click on the appropriate field until the above announced version
> number appears if it is not displayed already.
>
Thanks for this Corinna, I had just started hacking
S .com file, even though it is in the path.
You need to include the extensions for .com or .bat files to get them to
run under bash - .exe is OK. See the User Guide section on Special
Names.
[...]
HTH
Peter S Tillier[EMAIL PROTECTED]
__
aving CRLF problems. I'll
> check to see if this is a cygwin problem or a gawk problem but I
suspect
> it is a gawk problem.
>
> cgf
Chris,
This bug was fixed in release gawk-3.1.1-3
Peter S Tillier[EMAIL PROTECTED]
__
x27;t get this problem if I run the GNUWin32 port of gawk-3.1.0-2 or
the DJGPP version of gawk-3.1.1 at a Win95Cmd command line. So it looks
like there's problem with the Cygwin port running under command.com or
win95cmd somewhere. I suppose it isn't something to do with the cygwin
dl
16 matches
Mail list logo