Understand Awk Variables with 3 Practical Examples

2010-01-28 1 min read Learning Linux

<a id="aptureLink_gQhJKQ92Kn" style="padding: 0px 6px; float: left;" href="http://www.gnu.org/software/gawk/manual/gawk.html"><img style="border: 0px none;" title="The GNU Awk User's Guide" src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/ph/400x270_WebClip" alt="" width="400px" height="270px" />

<a id="aptureLink_CLV4LbC1Dr" style="padding: 0px 6px; float: right;" href="http://gnuwin32.sourceforge.net/packages/mawk.htm"><img style="border: 0px none;" title="Mawk for Windows" src="http://blog.amit-agarwal.com/wp-content/uploads/img.zemanta.com/ph/400x270_WebClip" alt="" width="400px" height="270px" /> This article is part of the on-going Awk Tutorial and Examples series. Like any other <a class="zem_slink freebase/en/programming_language" title="Programming language" rel="wikipedia" href="http://en.wikipedia.org/wiki/Programming_language">programming languages, Awk also has user defined variables and built-in variables. In this article let us review how to define and use <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk variables. Awk variables should begin with the letter, followed by it can consist of alpha numeric characters or underscore. Keywords […]

Continue reading

Seders\’s grab bag – Tutorials

2010-01-24 3 min read Bash Fedora Learning Linux

<a href="http://sed.sourceforge.net/grabbag/tutorials/">http://sed.sourceforge.net/grabbag/tutorials/

<span style="font-size: x-large;"><a href="http://sed.sourceforge.net/grabbag/">seder&#8217;s<a href="http://sed.sourceforge.net/grabbag/"> grab bag

  • <a href="http://sed.sourceforge.net/grabbag/scripts/">scripts

  • <a href="http://sed.sourceforge.net/grabbag/tutorials/">tutorials

  • <a href="http://sed.sourceforge.net/grabbag/seders/">seders

  • <a href="http://sed.sourceforge.net/grabbag/ssed/">ssed

  • <a href="http://sed.sourceforge.net/grabbag/links/">links

  • <a href="http://sed.sourceforge.net/grabbag/tutorials/#intros">Intros

  • <a href="http://sed.sourceforge.net/grabbag/tutorials/#advanced">Advanced

  • <a href="http://sed.sourceforge.net/grabbag/tutorials/#misc">Miscellaneous

<span style="font-size: large;">Sed Tutorials

If you have written anything about sed – whether an introduction, how sed got you out of a real-life situation, or perhaps an advanced technique you&#8217;ve discovered – you may like have your work published here. <a href="mailto:bonzini@gnu.org">Your contribution will be very welcome.

Continue reading

Perl script to create csv files with a pattern – Generic script.

2010-01-19 1 min read Learning Linux Perl

I was having a really bad day and needed a quick solution to create some csv files. And this I needed to do for multiple data kinds and patterns, so I created this small script to do the job for me…

#Number of rows required in the output.

$rows = 100;

#The config and the output file

open (CF_FILE, &#8221;<Config.test&#8221;);
open (OUT_FILE, &#8221;>test.csv&#8221;);

#—————————————————————————
# No need to change anything below this.
#—————————————————————————

Continue reading

Opens Four Google Frames At Once

2009-12-19 0 min read Learning Uncategorized
\"Google
Image via Wikipedia

Googlegooglegooglegoogle: Opens Four <a class="zem_slink" title="Google" rel="homepage" href="http://google.com">Google Frames At Once Googlegooglegooglegoogle (that is Google times 4!) is a simple <a class="zem_slink" title="Website" rel="wikipedia" href="http://en.wikipedia.org/wiki/Website">website/<a class="zem_slink" title="Homepage" rel="wikipedia" href="http://en.wikipedia.org/wiki/Homepage">startpage that puts four Google search windows in one page. It basically displays four frames so that you do not have to leave the page to search simultaneously. This tool is incredibly useful for Google power searchers.
<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/g4_thumb.png" alt="" align="bottom" />

Continue reading

check out http://browsershots.org/

2009-12-19 1 min read Learning Uncategorized

If you are a web developer and are worried about how your <a class="zem_slink" href="http://en.wikipedia.org/wiki/Website" title="Website" rel="wikipedia">website would look like in the various browsers and do not have the resources to test all the browsers, what do you do? Check out the <a class="zem_slink" href="http://en.wikipedia.org/wiki/Web_page" title="Web page" rel="wikipedia">webpage at

<a href="http://browsershots.org/">http://browsershots.org/<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.macstories.net/iphone/website-iphone/">Setting Up Your Website to Run on iPhone Browser (macstories.net) <div class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/8d5363f4-7641-40c8-b111-4a4d12d41ba5/" title="Reblog this post [with Zemanta]"><img class="zemanta-pixie-img" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e36.png" alt="Reblog this post [with Zemanta]" /><span class="zem-script more-related more-info pretty-attribution paragraph-reblog">

Continue reading

Some good and nice open source books worth downloading.

2009-11-22 1 min read Learning Linux

There is a nice article <a href="http://www.tectonic.co.za/?p=4491" target="_blank">here b<span class="byline">by Alastair Otter. He has given links to different Books that are worth reading.  These include:

<span class="byline">1)<a href="http://oreilly.com/catalog/9780596517984/" target="_blank"> http://oreilly.com/catalog/9780596517984/

<span class="byline">2) <a href="http://en.flossmanuals.net/DigitalFoundations" target="_blank">http://en.flossmanuals.net/DigitalFoundations

<span class="byline">3) <a href="http://wiki.blender.org/index.php/Doc:Tutorials/Animation/BSoD/Character_Animation" target="_blank">http://wiki.blender.org/index.php/Doc:Tutorials/Animation/BSoD/Character_Animation

<span class="byline">4) <a href="ftp://ftp.heanet.ie/pub/debian/pool/non-free/r/rutebook/" target="_blank">ftp://ftp.heanet.ie/pub/debian/pool/non-free/r/rutebook/

<span class="byline">to name a few, along with others. Its worth reading the article. While you are at it don&#8217;t forget the gems known as comments.

Continue reading

Multiple search in vim

2009-11-19 1 min read Learning Linux

I was looking at a log file and needed to highlight multiple search items to make the logs more readable. I got into multiple threads suggesting various cryptic vim commands but I was in no mood to remember them. So, I finally hit <a href="http://www.vim.org/scripts/script.php?script_id=479" target="_blank">this.

This is a cool vim script which you can use to highlight multiple search patter. You can simply add a search term by doing

Continue reading
Older posts Newer posts