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.
- Built-in functions for numeric operations
- Built-in functions for String operations
- Built-in functions for Input Output operations
(more…)
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…)
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.
-
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…)
by SathiyaMoorthy on March 8, 2010
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…)
by Sasikala on March 3, 2010
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…)
by Ramesh Natarajan on February 26, 2010
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…)
by Sasikala on February 24, 2010
This 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…)