@# Quotes DB     useful, funny, interesting





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


Comments:

<0> how do I ignore the first line in an output with awk?
<1> NR > 1
<0> heh ok
<1> or maybe tail is a better tool for the job.
<0> df -k
<0> how do I ignore the first line, using awk ?
<1> echo -e "a\nb\nc" | awk 'NR > 1'
<0> thanks
<0> got it now
<1> or, echo -e "a\nb\nc" | tail -n +2



<1> might be faster
<0> no tail :-)
<0> df -k | awk '{ if (NR!=1) {print $1 " is " $5 " full" } }'
<1> k
<0> ok, what is the different between {' '} and '{ }' ?
<0> what is the preferred way for awk ?
<1> Difference is you don't use {' '}
<0> opps
<0> been using that...
<0> so use '{}' ?
<1> yeah
<1> you don't have to use {} , but they are useful.
<0> yep, i prefer using {} . Just getting in awk, and I love it
<0> there are some pretty sharp people on the net who use it.
<1> There are.
<2> Your FAQ just cleared out 4 hours worth of frustration. :) Thanks guys!
<3> you bet!
<2> :) it was OSR - I couldn't understand why all of my matches had trailing newlines! :)
<2> ... and awk was giving me errors ("newline in regular expression") whenever I tried to use a result somewhere else in my script
<3> awk
<3> aha
<3> man
<3> I wonder why linode powered down my box
<2> powering down someone elses box should be against the Law :)
<3> particularly when it's a dedicated server
<3> "Status: power off"
<3> wtf
<3> nigga
<1> racist!
<3> hey
<3> wtf man
<3> I'm not racist
<3> awkbot: ih
<3> awkbot: hi
<4> tag: hello
<3> word
<3> awkdoc OSR
<4> tag:
<3> hurm
<3> awkdoc ORS
<4> tag: ORS The output record separator, by default a newline.
<3> :-)
<2> :)
<3> awkbot++



<3> awkbot: karma awkbot
<4> Karma for awkbot: 5 points
<2> faq++
<3> awkbot: karma faq
<4> Karma for faq: 1 points
<1> awkbot: karma goldfish
<4> Karma for goldfish: 1 points
<1> \o/
<3> ssh is pissing me off today
<5> tag, lets code C a lil
<3> {xmb}: I'm fairly busy, but what do ya need?
<5> http://xmb.ath.cx/hl2
<5> need to modify the dir struct on the fly
<5> the code is code/hl2.c
<5> aka just structs
<5> need any part of that mighty one-c-file-possible thing on
<5> will be the shizzle when its done
<3> modify the dir struct
<3> why's that a problem?
<3> or do you mean directory structure?
<5> yes, in the text file
<5> not in code
<3> you need to be more clear
<5> it will be serv/<nodename>/<files>
<5> it will be client + http compatible
<3> array[ hash(text) ] = { ..info and commands.. }
<3> what the heck
<5> prefs
<5> eg
<5> struct.has_http
<5> may be hash(has_http) in an array
<5> both ways
<5> whatrever
<5> need any thing done
<5> eg
<5> bind-on-all-interfaces code
<5> or an fd_set with poll or select for 3 ports
<5> this mine idea btw, (c)xmb
<5> brb
<3> that's not a good way to do hash tables
<3> I never really can understand what that guy is talking about
<6> hi
<7> hi jwset
<7> jwset, srry
<6> happen happen to have an example in C for a logeditor
<6> well something like .....delete user from utmp
<6> or in awk if its possible to just do it like run through it with gawk and write out a new file with the record i'm looking to remove not reaching the new file?
<6> anyway got it
<8> tag
<1> your it
<8> sure
<8> you aint too tho?


Name:

Comments:

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






Return to #awk
or
Go to some related logs:

#python
#gentoo
iptables disable msn
ubuntu change icon
mysql-administrator user administration freezes
installer script aquabou gimp
syengry, sourceforge
#openzaurus
clientaliveinterval 2.4 kernel
perl warning handler



Home  |  disclaimer  |  contact  |  submit quotes