@# Quotes DB     useful, funny, interesting





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


Comments:

<0> anybody around ?
<1> Thanatermesis: Yo.
<1> Thanatermesis: I have a few minutes.
<0> good :)
<0> i need to cat a block of text in a section
<0> well, append



<0> more exactly... on a section of the xorg.conf file, this section: http://paste.debian.net/10719
<0> i need to add a block of data on the final of this section
<1> Thanatermesis: OKi...
<0> :)
<1> Thanatermesis: What are you asking, though?
<1> Thanatermesis: There is no question ;) I was waiting for you to ask.
<0> well, i don't know how to made it
<1> Thanatermesis: I see.
<1> Thanatermesis: Are you considering the whole section a "record"?
<1> Thanatermesis: If so, it's easy.
<0> a record ?
<0> well, i need to save those "Section "Monitor"" and EndSection
<1> Thanatermesis: Define a record as something that starts with 'Section "Monitor"' and ends with 'EndSection'.
<1> Thanatermesis: Define the field separator as "\n"
<1> Thanatermesis: At that point you have a record with four fields: Identifier, HorzSync, VertRefresh, and Option.
<1> Thanatermesis: So you output those fields as-is, and add the stuff you need before the EndSection line.
<1> Thanatermesis: Look at RS, FS and you're set.
<0> hum
<1> Thanatermesis: Gotta go - hot date tonight.
<1> Thanatermesis: I'll be back in a couple of hours.



<1> Thanatermesis: Or I'm sure that folks with better kung fu than mine will be happy to help.
<0> ok
<0> have a nice night ;)
<0> and caution with the girls :P
<0> erf
<0> awk '/^.*Section.*\"Monitor\".*$/,/^.*EndSection.*$/ {if ($0 == "EndSection") {system("cat /tmpfs/list")}}{print}' /etc/X11/xorg.conf
<0> finally !
<0> (some hours after...)
<1> Hej.
<2> does the sub() function write changes against the flat database textfile or does it only display a changed record.. ?
<1> Greetings.
<3> hello
<3> i do this to a HTML file: cat test.html |grep IP | awk '{print "$2:\t" $2"\t\t$5:\t"$5"_"$6}', and get the following line out
<3> $2: href='graph.php?local_graph_id=3408&rra_id=all'>IP $5: TDR1_Vlan38
<3> i want to break $, and only fetch id=3408 from that piece, and finaly present: TDR1_Vlan38_id=3408
<3> $2 i meant...
<3> can anyone help me out here ...
<1> uffdoy: Hej.
<1> uffdoy: cat test.html | awk '/IP/ { ... }' for starters.
<1> uffdoy: Then look at the match() and substring() functions of awk.
<1> uffdoy: Even better if you do: awk '/IP/ { ... }' < test.html - no need to spin out all those processes.


Name:

Comments:

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






Return to #awk
or
Go to some related logs:

#debian
#css
gnucash missing fonts
#css
#python
sh3l1
clsql MEDIUMTEXT
CSS validation Redefinition of width
notice nuxil
#debian



Home  |  disclaimer  |  contact  |  submit quotes