Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Learn to talk awk
prostoalex
follow
0
3-15-2008 11:25 PM
150 views
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Related Clips
One-Legged Swimmer Takes to Olympic Waters
Missing Kids Come in all Colors
Charity Begins At Home Except if Your Name...
They're here
Obama Throws Pebbles
he problem of antispyware-2008-xp and othe...
Snarkalicious Response From Georgian People
More clips from
prostoalex
The Complete Guide for You to Become an Al...
Git Magic
The Art of Engineering
Today's Top Clips
Proven: Gorillas have human emotions
Polygamy is the key to a long life
Drunk Builders & Mad Architects
Do we create the world just by looking at it?
sleeping tiger and man, is this picture real?
Spider webs
World’s Most Spectacular Skylines
Research: music is an important influence on our memories
Where are we heading?
Does Bush Believe McCain Was Tortured?
visit the
Top Clips page
View the Top Clips from
March 15, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://www.clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/fae69417-b546-49a8-819d-8197fd3037e5/091522C7-CF2E-4B08-AB87-E287166EE45D/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.linux.com/articles/114109" href="http://www.linux.com/articles/114109" style="font-size: 11px;">www.linux.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.linux.com/articles/114109"><DIV class="xar-clearleft"><DIV> <B>User level: Advanced</B> </DIV> <BR />When it comes to slicing and dicing text, few tools are as powerful, or as underutilized, as awk. The name "awk" was coined from the initials of its authors, Aho, Weinberger, and Kernighan -- yes, the same Kernighan of the famous Kernighan and Ritchie "C Programming Language" book. In the Linux world, every distribution includes the GNU version, gawk (/bin/awk is usually a symbolic link to /bin/gawk). The GNU version has a few more features than the original. Let's play with some of the core features common among POSIX-compliant awks. </DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.linux.com/articles/114109"><P>In this article, when I reference awk, I am really using gawk.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.linux.com/articles/114109"><P>The awk utility is a small program that executes awk language scripts, which are often one-liners, but just as easily may be larger programs saved in a text file. For example, to execute an awk script saved in the file prg1.awk and have it process the file data1, you could use a command such as:</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.linux.com/articles/114109"><P> <CODE>awk -f prg1.awk data1</CODE> </P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/091522C7-CF2E-4B08-AB87-E287166EE45D/blog/" title="blog or email this clip"><img src="http://content8.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Blog
Copyright
Privacy
EULA
OK