@# Quotes DB     useful, funny, interesting





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


Comments:

<0> awk95 rules
<1> Greetings.
<0> May the Great awk have blessings upon you ..
<2> awk95?
<0> yes the master
<0> Brian W. Kernighan--the "k" of awk--bell-labs
<0> http://www.cs.bell-labs.com/who/bwk/index.html



<2> I know who kernighan is
<0> yep But i sent him email years ago re awk and he responded !!
<2> funny, I sent him one and he didn't respond
<0> ok i did not bother him; with response
<0> ok How to flame in awk ??
<3> linux gawk's !
<0> whilst you have no clue; i have beenchmarked gawk vs awk95
<3> which came first, the a,w or k?
<3> i have benchmarked winbloz vs linux instability and winbloz wins every time
<0> can you even spell awk ?
<0> that was joke; i have re-defined all the internet protocols to point to awk scripts
<3> ispell awk
<0> %awk% "BEGIN {for(i in Flames)
<0> system(\"echo \" Flames[i] \">NUL\"; exit;}"
<0> %awk% "BEGIN {Flames[1]=\"%L\";for(i in Flames) print i,
<0> Flames[i] >\"/dev/stderr\"; getline;}"
<1> gnubien: There's a brief history of awk's origin in "The UNIX Programming Environment" by Brian Kernighan et. al.
<1> gnubien: Plus some killer examples.
<0> yep may i also recommend the books by
<0> "Programming Pearls"
<0> http://netlib.bell-labs.com/cm/cs/pearls/
<4> 1/wg 3
<4> oops
<5> how to sort by the column X ?
<4> Thanatermesis: define sort?
<4> Thanatermesis: use an array and asort() the index, etc..
<4> print out by the sorted index?



<5> example
<5> http://popcon.debian.org/by_vote
<5> i have this list
<5> and i want to look the result of this lost sort'ed by the 3 4 or 5 column
<4> Thanatermesis: then you need to read each line into an array, with column X value as the key. then in END, use asort.
<4> err, asorti
<5> hum, this is advanced awk for me :) any example ?
<4> then a simple 'for (i in array) ..'
<4> BEGIN { coltosort=X; }
<4> $1 ~ /^[0-9]/ { lines[$X] = $0 }
<4> END { asorti(lines); for (i in lines) print $0; }
<4> replace X with the column number, obviously.
<6> hello !
<6> i can't print " ' ", anyone can help me?
<7> but to know it for sure
<7> could you give us an exact failure case?;)
<6> i need print this char --> ' ( single quotation )
<3> vahid_away: echo bonjour | awk '{ print "'\''"$1"'\''" }'
<3> vahid_away: echo "bonjour gooday"| awk '{ print "\47"$1"\47" }'
<6> gnubien, tnx very much :*
<3> vahid_away: have fun ;)
<5> thx, let me try it...
<4> Thanatermesis: interesting, how are those scores calculated?
<8> Thanatermesis, why not use "man sort"?
<5> paul, from popcorn package, i think :)
<4> ah
<9> ne1 need a script </xmb>
<2> huh
<2> Rado: what


Name:

Comments:

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






Return to #awk
or
Go to some related logs:

#perl
perl2exe pty.pm
#fedora
hardrive icons ubuntu
#ubuntu
mount hd ubuntu
+enemy-territory.rpm
#linux
#css
linux urlsee



Home  |  disclaimer  |  contact  |  submit quotes