| |
| |
| |
|
Comments:
<0> oracle ****s <1> That's why people who are good at oracle get paid lots of monies. <0> we have those people <0> and oracle still failed us <1> hehe <2> tag: its a beast <2> tag: a very expensive beast :) <3> whats a tag: ?? <0> uh <0> I am <0> paul: so it's a piece of ****
<0> I know, I use it <0> I hate it <0> but I have to say <0> Oracle is like a brother to me <0> It's like that deadbeat bastard brother that always needs to borrow money I know I'll never get back <0> haha. hah. <2> tag: ;) <3> Oracle works for You ?? <0> no <0> oracle ****s <0> oracle does not work for me <0> it fails <0> fails fails fails <3> so does Life; but then you must **** it up; and get on beyond it .. <3> have you followed where the NEC SX7 single-core proccessors does 7 GigaFlops ? <3> you think i stupid: but google has 26 thousnd hits: nec megatons <4> Good night. <5> hi <5> how do i remove \n from shell input in awk ? <5> is there something like perl's chomp ? <5> nevermind <5> i got it working <6> meow <7> I'd like to perform a match with a regex whose part is in a variable... ie. var=string; if (/test=[here insert my variable]/) { print; } <7> I wonder how? <5> if ( test ~ var) <5> there's also a match() <7> if (/[ \t]*<name>basepkgs[i]<\/name>[ \t]*/) { <7> array, i-th member: basepkgs[i] <7> I could of course make a temporary variable matchme, which would have it properly subtituted <7> but that's silly <7> I guess using match() is gonna be the best way <7> grm, wouldn't work, despite the fact that there is a proper member of basepkgs, if i substitute it manually it works dandy <7> ah <7> got it <7> grm... can I use RE substitution with backreferences? ie. awk's equivalent to: s/.*<location[\t ]+href="\([^"]*\)">.*/\1/ <5> iSteve: you got that working ? I mean how to reference a matched pattern ? <7> no, I worked it around <5> how ? <4> Bonjour. <8> I have this awk line, that I can't get it to print out the variables using a printf, but i can using a print: awk .... print E, NORM; printf "%d %.0f %.0f\n", '$total_min', E, NORM}' $TMP_FILE >> $OUTFILE <8> heres an example of the output: http://rafb.net/paste/results/IOaRYH43.html
<8> you'll see that the print correctly prints E and NORM, however the printf prints them as 0 <8> i'm trying to use printf so that i do not get scientific notation <9> hello <9> how do i use shell script variables in awk <1> Should be explained in the FAQ. <7> it is properly explained in awk manpage already i'd say... awk -v var=value <7> (at least mawk and gawk manpages) <1> yeah <1> I'm just plugging the FAQ , seeing as paul upgraded his connection to host it :) <7> hmm <7> as long as it doesn't need sql, I could host it for you without any h***le <1> FAQ is nothing to do with me. <7> mhm <7> :) <4> alexi5: x="42" ; awk -v varInAwk="$x" <9> ok thanks <9> thanks alot <10> hedpe_, what's wrong with it? <8> Rado: its printing 0's <8> it should be printing a decimal <10> Aside from prettyness, does it matter? <10> Mathematically it's not wrong. <8> it'll be easier for me to parse <10> You might sprintf it and the replace "0" with whatever you want. <10> Why .0 anyway? <4> Rado: Read the man printf page. <4> Rado: If dX = 23.6666666666666, %04.2f ==> 0023.67. <4> Rado: awk printf() follows similar rules. <4> Rado: Also, for sake of making your code more readable, use parentheses for print() and printf(). <10> pr3d4t0r, huh? ()??? <4> Rado: printf "%d %.0f %.0f\n", '$total_min', E, NORM <--- fugly as a drunk fat chick with a hangover whose name you don't know, laying on your bed naked on a Saturday morning. <10> pr3d4t0r, that's not from me. <4> Rado: printf("%d %.0f %.0f\n", '$total_min', E, NORM); <4> Rado: Ah, sorry; that's for hedpe_. <4> Rado: Heh. <4> Rado: My apologies. <10> Now what of all these lines is for me? :) <4> hedpe_: The whole thing I just told Rado was actually for you. <4> Rado: None. Yo' da man. <4> Rado: I misread where in the sequence you were. <4> Rado: I just realized that you were replying to hedpe_, etc. etc. <4> Anyway...... <4> ......time to had to das Office. <4> See y'all later. <10> pr3d4t0r, fine, now instead of flooding #awk again, flood hedpe_ directly. ;) <4> Rado: :* <4> Hello.
Return to
#awk or Go to some related
logs:
#ai #perl #math #fedora perl + decode_utf yum passive ftp python #javascript SSL Library Error: 218542222 error: #css int10 2.6.16 radeon
|
|