awk

I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?

{ 1 comment }

Linux: Parse an IP Address

by Vivek Gite on January 28, 2010 · 0 comments

How do I parse my Linux servers IP address using a Bash shell?

{ 0 comments }

How To Use awk In Bash Scripting

by Vivek Gite on August 15, 2009 · 22 comments

How do I use awk pattern scanning and processing language under bash scripts? Can you provide a few examples?

{ 22 comments }

Awk Print Line After A Matching /regex/

by Vivek Gite on May 13, 2009 · 8 comments

How do I a print line after matching /regex/ using awk under Linux / UNIX operating systems? I’d like print the line immediately after a line that matches /regex/ but not the line that matches itself.

{ 8 comments }

BASH: Prepend A Text / Lines To a File

by Vivek Gite on August 23, 2008 · 28 comments

Q. I can append text to a file using >> operator but how do I prepend a text to a file? I want the opposit of >> operation?

{ 28 comments }