@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> Is there a way to convert apache logfiles into a CSV file?
<0> Sed is sed, after all. :)
<1> Probably
<0> Mmph. What?
<0> Do you know of it?



<1> nope
<2> hlieberman: Yes; insert comma in appropriate places.
<0> prec, Heh. It's a few thousand line file... I'd rather do it automatically.
<2> That's what I mean: use sed to insert commas in the appropriate places.
<2> Of course, if the field data contains a comma, you must quote the whole field.
<0> prec, Oh. Hooow?
<2> hlieberman: Probably mostly using the s command.
<3> hello
<3> is tere a replace like s/foo/bar/g that preserves case, so
<4> no
<3> FOO->BAR foo->bar fOo->bAr and so on?
<3> so how to do that?
<4> with sed, you generally can not
<4> it depends on the actual input and output
<4> you would like to have instead of foo and bar
<4> :)



<3> hmm ok
<4> actually you may be able to do it, but it'd be terribly silly long sed script
<3> well ok I solved it anyway
<3> :)
<4> how, if I may ask?
<3> I just used the combinations I needed
<3> Foobar FOOBAR and foobar
<4> heh
<3> how to write a rule like s/../../g
<3> that will change #include "foo.h" into #include <foo.h> ?
<4> well, for _example_
<3> that is: if line begins with "#include" then select the text between quote marks ".." and paste that text as < >
<3> it dont have to be nice I just want it to work
<4> s/^#include "\([^"]*\)"/#include <\1>/
<3> awesome, thanks
<4> invoice will come by the end of the month
<5> is that expression ok?
<5> oh never mind


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #sed
or
Go to some related logs:

#kde
#gentoo
ubuntu gnome-terminal irssi color
#gentoo
debian corrupted aim dpkg-deb
#math
#math
flash +installer hangs +mac
#mysql
opencert



Home  |  disclaimer  |  contact  |  submit quotes