it matches, but outputs $1 instead of the variable value
2008-06-30 18236, 2008
niklas
oh
2008-06-30 18221, 2008
xlotlu
just use -r? :P (and \1)
2008-06-30 18234, 2008
niklas
hmm I dont understand how that would work?
2008-06-30 18236, 2008
niklas
oh. I'll try
2008-06-30 18223, 2008
niklas
xlotlu: that seems to work
2008-06-30 18229, 2008
niklas
thanks. sorry I didnt get you first
2008-06-30 18218, 2008
duckman joined the channel
2008-06-30 18219, 2008
niklas
works fine... but why is ([0-9]*) okay, but (.*) is not?
2008-06-30 18240, 2008
niklas
it doesnt match anything, while ([0-9]*) matches
2008-06-30 18253, 2008
stochasticism has quit
2008-06-30 18223, 2008
aCiD2
that doesn't make sense... .* should work :S
2008-06-30 18227, 2008
aCiD2
what regex engine?
2008-06-30 18223, 2008
niklas
extended regular expressions
2008-06-30 18233, 2008
niklas
very weird indeed, especially since its working elsewhere. just wont work within the parenthesis
2008-06-30 18201, 2008
Clint
in ERE, (.*) matches 0 or more characters surrounded by literal parentheses
2008-06-30 18212, 2008
niklas
echo "INSERT INTO \`_1000\` VALUES (21,'Âò·¿ÈË','homebuyer" | ssed -r 's/.*\((.*),.*/\1/'
2008-06-30 18219, 2008
niklas
Clint: same with .+
2008-06-30 18228, 2008
niklas
oh
2008-06-30 18242, 2008
niklas
matches (whatever inside here)?
2008-06-30 18246, 2008
Clint
yes
2008-06-30 18200, 2008
Clint
and it won't put it into a variable
2008-06-30 18211, 2008
niklas
why!?
2008-06-30 18200, 2008
Clint
because that's the way regexes have been forever until perl messed them up
2008-06-30 18210, 2008
niklas
oh ok
2008-06-30 18217, 2008
niklas
do you know how to put it into a variable?
2008-06-30 18238, 2008
Clint
/\(blah (blah)\) blah/ will match "blah (blah) blah" and put "blah (blah)" into \1
2008-06-30 18255, 2008
niklas
but how do you put .* into \1?
2008-06-30 18216, 2008
Clint
\(.*\)
2008-06-30 18252, 2008
niklas
that gives me an error: ssed: -e expression #1, char 19: invalid reference \1 on `s' command's RHS
2008-06-30 18255, 2008
niklas
hmm
2008-06-30 18249, 2008
niklas
ah RHS as in right hand side
2008-06-30 18225, 2008
niklas
I give up
2008-06-30 18221, 2008
xlotlu
umm ssed. what's ssed?
2008-06-30 18211, 2008
Clint
supersed
2008-06-30 18213, 2008
xlotlu
several new features (including in-place editing of files, extended regular expression syntax and a few new commands) <-- and how's that new? (except maybe for the new commands)...
2008-06-30 18222, 2008
Clint
it was a fork of sed3 by the current gnu sed maintainer
2008-06-30 18228, 2008
Clint
so pretty much everything got folded into sed4
2008-06-30 18247, 2008
Clint
(assuming you build sed4 with the extensions)
2008-06-30 18207, 2008
niklas
Im using it because it supports perl regular expressions
2008-06-30 18236, 2008
xlotlu
i assume debian does. never knew sed didn't have in place editing or extended regexps..
2008-06-30 18256, 2008
Clint
debian does not build with pcre because libpcre isn't in /lib yet
2008-06-30 18231, 2008
xlotlu
oh, so that -R does indeed do pcre
2008-06-30 18251, 2008
niklas
leaving. good night
2008-06-30 18257, 2008
niklas
thanks for the help
2008-06-30 18236, 2008
xlotlu
'nn
2008-06-30 18248, 2008
niklas has quit
2008-06-30 18249, 2008
MrQwerty`
MrQwerty` is now known as MrQwerty
2008-06-30 18223, 2008
Amblin joined the channel
2008-06-30 18237, 2008
xlotlu
beautiful... make had returned bad status, install seems impossible
2008-06-30 18243, 2008
xlotlu
cpan sucks
2008-06-30 18259, 2008
xlotlu
i just seem to be unable to get that server running :/
2008-06-30 18214, 2008
Amblin- has quit
2008-06-30 18218, 2008
DarkAudit has quit
2008-06-30 18239, 2008
xlotlu
well... at least it's good at downloading: for d in $(ls); do (cd $d; perl Makefile.PL; make; make install); done
2008-06-30 18211, 2008
DarkAudit joined the channel
2008-06-30 18235, 2008
mikemorr joined the channel
2008-06-30 18213, 2008
Infinito- has quit
2008-06-30 18251, 2008
stochasticism joined the channel
2008-06-30 18256, 2008
DarkAudi1 joined the channel
2008-06-30 18203, 2008
xlotlu
yey, got a mb server that throws exceptions: Caught exception in MusicBrainz::Server::Controller::Root->index "Can't locate object method "new" via package "MusicBrainz::Server::NewsFeed"
2008-06-30 18232, 2008
DarkAudit has quit
2008-06-30 18249, 2008
DarkAudi1
DarkAudi1 is now known as DarkAudit
2008-06-30 18204, 2008
duckman has quit
2008-06-30 18247, 2008
MrQwerty` joined the channel
2008-06-30 18243, 2008
luks has quit
2008-06-30 18219, 2008
outsidecontext joined the channel
2008-06-30 18226, 2008
luks joined the channel
2008-06-30 18254, 2008
outsidecontext
good morning luks
2008-06-30 18221, 2008
luks
moin
2008-06-30 18254, 2008
ruaok waves at his friends from europe
2008-06-30 18215, 2008
ruaok
oh hey.. been meaning to ask you for a while, luks
2008-06-30 18224, 2008
outsidecontext
hey ruaok
2008-06-30 18237, 2008
ruaok
you pastebin'ed a code fragment that would run search_server as a standalone process.
2008-06-30 18247, 2008
ruaok
can you paste that again, please?
2008-06-30 18250, 2008
ruaok
moin outsidecontext!
2008-06-30 18253, 2008
ruaok
good weekend?
2008-06-30 18204, 2008
outsidecontext
yep
2008-06-30 18218, 2008
ruaok
good. mine i still going well.
2008-06-30 18242, 2008
outsidecontext
:) then enjoy the rest of it
2008-06-30 18257, 2008
ruaok
naw, enough fun for today. gotta finish off some bugs.
2008-06-30 18218, 2008
ruaok went for a bike ride today: http://trail.motionbased.com/trail/activity/6118677