Skip to main content

Thread: AWK syntax


hello,

quick awk question. can't find out how online. i've searched through many, many "awk one-liner" pages!

have code does

code:
awk '{print $4/10}' getpdb | head -1
now works fine, know how in 1 awk command.

code:
awk '{print $4/10}/&&/$nr==1/' getpdb
but doesn't work.

realize might seem trivial, know how it. don't use pipes "|" unless have to.

time!
dave

i got on this. it?

code:
awk '{print $4/10; exit}' getpdb


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk AWK syntax


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account