awk command

Linux: Find Out What Partition a File Belongs To

by Vivek Gite on December 19, 2011 · 1 comment

How do I find out that /users/f/foo/file.txt file belongs to a specific partition?

{ 1 comment }

I‘d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:

This is a test
Giving back more than we take

I want my input file with the following output:

a test
more than we take

How do I printing lines from the nth field using awk under UNIX or Linux operating systems?

{ 1 comment }

Bash: Pass Shell Variables To awk

by Vivek Gite on April 19, 2011 · 0 comments

How do I pass shell variables to awk command or script under UNIX like operating systems?

{ 0 comments }

How can I convert newline [ line break or end-of-line (EOL) character ] between Unix and Windows text files?

{ 0 comments }

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 }

UNIX / Linux: awk Add Two Numbers

by Vivek Gite on October 2, 2010 · 0 comments

How do I add two numbers using awk? How do I calculate all incoming number stream on fly and display the total using awk?

{ 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 }