Next:
Introduction
Up:
Navigating Linux Systems
Previous:
Combining commands using pipes
Contents
Shell Scripting
Subsections
Introduction
Text Editors
Introduction
The Vim file editor
The GNU emacs file editor
Creating new commands
Command arguments and parameters
Program output as an argument
Shell metacharacters
Shell variables
Loops and conditional statements in shell programs
for
loop
if
statement
case
statement
while
loop
until
loop
Arithmetic in shell scripts
Interactive programs in shell scripts
Useful commands for shell scripts
The basename command
The test command
Functions
Extended shell script examples
Printing with proper tab spaces
Simple test script
Changing file extensions in one fell swoop
Replacing a word in all files in a directory
Counting files greater than a certain size
Counting number of lines of code recursively
Backing up your files periodically
Backing up your files with minimal disk space
Watching if a user logs in or logs out