From the category archives:

Linux

9 Powerful Awk Built-in Functions for Numeric

by Sasikala on March 17, 2010

Similar to awk built-in variables, awk also has lot of built-in functions for numeric, string, input, and ouput operations. Awk has the following three types of high level built-in function categories.

  1. Built-in functions for numeric operations
  2. Built-in functions for String operations
  3. Built-in functions for Input Output operations

(more…)

{ 0 comments }

How to Debug C Program using gdb in 5 Simple Steps

by SathiyaMoorthy on March 15, 2010

Earlier we discussed the basics of how to write and compile a C program with C Hello World Program.

In this article, let us discuss how to debug a c program using gdb debugger in 5 simple steps.
(more…)

{ 4 comments }

How to Find and Delete Empty Directories and Files in Unix

by Ramesh Natarajan on March 12, 2010

Question: How do I locate empty directories that doesn’t contain any files? Also, how do I find all empty files ( zero byte files ) in Linux?

Answer: You can use unix find command to get a list of all empty files and directories as explained below.

Also, refer to our earlier articles about unix find command examples – part 1 and find command examples – part 2.

-

{ 3 comments }

AWK Arrays Explained with 5 Practical Examples

by Sasikala on March 10, 2010

Awk programming language supports arrays. As part of our on-going awk examples series, we have seen awk user defined variables and awk built-in variables. Arrays are an extension of variables. Arrays are variable that hold more than one value. Similar to variables, arrays also has names. In some programming languages, arrays has to be declared, so that memory will be allocated for the arrays. Also, array indexes are typically integer, like array[1],array[2] etc.,
(more…)

{ 2 comments }

Photo Courtesy: db*photography

Photo Courtesy: db*photography

Ubuntu espeak is a speech synthesizer for English (and several other languages) which will convert text to speech.

You can straight away execute espeak command on your Ubuntu machine without any installation or configuration.

In this article, let us review 8 examples of espeak command.

(more…)

{ 4 comments }

Similar to our on-going Unix Sed and Unix Awk series, we will be posting several articles on Bash scripting, which will cover all the bash scripting techniques with practical examples.

Shell is a program, which interprets user commands. The commands are either directly entered by the user or read from a file called the shell script.
(more…)

{ 5 comments }

Question: I would like to understand the basics of how to write and execute Cobol program on Linux OS. Can you explain it with a simple example?

Answer: In this article, let us review very quickly how to write a basic Hello World Cobol program and execute cobol program on Linux or Unix OS.

(more…)

{ 3 comments }

Linux Awk For, While Loop ExamplesThis article is part of the on-going Awk Tutorial Examples series. In our earlier awk articles, we discussed about awk print, awk user-defined variables, awk built-in variables, awk operators, and awk conditional statements.

In this article, let us review about awk loop statements – while, do while, for loops, break, continue, and exit statements along with 7 practical examples.
(more…)

{ 1 comment }