DaemonForums  

Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th March 2012
iostreamer iostreamer is offline
New User
 
Join Date: Mar 2012
Posts: 7
Default awk material to study.

Hello my boss has given me the task of finding an awk programmer.
I have been formally c.science trained but have used awk only for my homework back in the days.
I might get the task of making the interviews so I would like to refresh my knowledge about awk.
Do you have any good books or guides in mind?
I know I could just easily google it but I would like to hear from experts.
Reply With Quote
  #2   (View Single Post)  
Old 27th March 2012
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

book) awk & sed
online) awk one-liners
and www.awk.info (which I just discovered while looking up a third answer to this post. )
The "awk one-liners" might be among the tons of information at that .info site, too busy to
check today.
And if the "apropos" command is at your workstation, "apropos awk" may give a few man pages to browse; some may have links within them.
__________________
FreeBSD 13-STABLE
Reply With Quote
  #3   (View Single Post)  
Old 27th March 2012
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by iostreamer View Post
Do you have any good books or guides in mind?
Although O'Reilly has two titles on awk, in my opinion, the original book is the most comprehensive:

http://www.amazon.com/The-AWK-Progra...2871388&sr=8-2
Reply With Quote
  #4   (View Single Post)  
Old 27th March 2012
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

Whatever you can do with awk you also can do with Perl. Unless you have a big amount of awk programs to be maintained, I would suggest you look for a Perl programmer
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #5   (View Single Post)  
Old 27th March 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

you are definitely right J65nKo .. perl is modern , powerful for regex and strings and general purpose .. I'm really starting to love it .. still an immature newb though .. already on zoid and psh .. thanks to OpenBSD ! it will take me at least 1 year of extensive training ..
By the way, there is an awk to perl translator (a2p) ..

Last edited by daemonfowl; 28th March 2012 at 03:16 AM.
Reply With Quote
  #6   (View Single Post)  
Old 28th March 2012
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

If you decide anyway to go with awk, I could recommend these:

- Awk Community Portal
http://awk.info/

- Awk Channel Wiki
http://awk.freeshell.org/

- comp.lang.awk FAQ
http://www.faqs.org/faqs/computer-lang/awk/faq/

- Awk (Introduction to)
http://www.grymoire.com/Unix/Awk.html

- An Awk Primer (A Guided Tour Of Awk)
http://www.vectorsite.net/tsawk.html

- The GNU Awk User's Guide (Effective AWK Programming)
http://www.gnu.org/software/gawk/manual/gawk.html

- Awk Wikipedia
http://en.wikipedia.org/wiki/AWK

- Famous Awk Oneliners Explained:

http://www.catonmat.net/blog/awk-one...ined-part-one/ Part I: File spacing, Numbering and Calculations
http://www.catonmat.net/blog/awk-one...ined-part-two/ Part II: Text Conversion and Substitutions
http://www.catonmat.net/blog/awk-one...ed-part-three/ Part III: Selective Printing and Deleting of Certain Lines


I also agree with @ocicat about the books recomendation.
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C project to study maxrussell Programming 10 23rd January 2009 08:47 AM
C Programming Study Group on SDF cajunman4life Programming 0 23rd August 2008 02:27 AM


All times are GMT. The time now is 11:49 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick