Command Line Basics: Cut Fields With awk

December 15, 2009 by · 1 Comment
Filed under: command line, HowTo, linux, Ubuntu 

There are times when you will want to trim some information from the output of a command. This may be because you want to feed that output into another command. Whatever the reason for wanting to manipulate the output, awk is one of many tools available in GNU/Linux to perform this task.   Read more

Bash to Basics: The While Do Loop

September 13, 2009 by · 4 Comments
Filed under: bash, linux 

The While Do Loop

One of the most common structures in programming is the Do Loop. The version that I'm going to show today is the While Do Loop. The basic structure of the While Do Loop is: while condition A exists, execute the loop. Here's an example program that counts to ten and then exits. Read more

Command Line Basics: Pipelining Output

September 5, 2009 by · 3 Comments
Filed under: bash, command line, HowTo, linux, Ubuntu 

One of the most powerful features of the Linux command line interface, (and other shells that conform to the POSIX standard) is the ability to pipeline output from one command as the input to another. This is done using the vertical bar or pipe character [ | ]. Read more

Command Line Basics: Redirecting Output

August 23, 2009 by · 1 Comment
Filed under: bash, command line, HowTo, linux 

In today's command line basics, I'm going to show you how to redirect output from the bash cli (command line interface). The output of most GNU command line tools is normally sent to the terminal (ie - standard output). There are times when you would like to have the output saved as a file. Now, you could copy the text from the terminal and paste it into a text editor and save it, but there's a better way. Read more

Command Line Basics: View Files With cat

August 21, 2009 by · 3 Comments
Filed under: command line, HowTo, linux 

Oakley the CatThere are many ways to view files in GNU/Linux. One of the simplest command line tools for viewing files is cat. The cat command, short for concatenate, is actually intended for joining multiple files into one, but it works equally well for viewing text files. Read more

« Previous PageNext Page »