Thursday, May 14, 2009

Very Simple Bash Scripts

Very Simple Bash Scripts: "#! /bin/bash
# script to turn the screen blue
setterm -background blue
echo It is a blue day

Line 1: specifies which shell should be used to interpret the commands in the script.
Line 2: is a comment (has no effect when the script is executed).
Line 3: sets the background colour.
Line 4: displays a message."

Wednesday, April 1, 2009