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

Batch Watermark Images in Linux

August 16, 2009 by · 13 Comments
Filed under: bash, HowTo, linux, web development 

I previously wrote up a post showing how to watermark images in Linux with ImageMagick. Without too much work you can write a script to do batch processing of your images. This way you can watermark a whole directory of images at once. Read more

« Previous PageNext Page »