Computer Science Department, Bucknell University
Simple Linux Shell Scripts
CSCI 479 Fall 2009
Professor Dan Hyde
A Linux shell script is a file with one-command line command per line.
Assume the file script1 contains the following:
# shell script to compile and run a java program
javac TempConversion2.java
java TempConversion2
To execute the script, type
sh script1
Good Reference Book: The Unix C Shell Field Guide by Gail
Anderson and Paul Anderson, Prentice Hall, 1986, paperback.
Page maintained by Dan Hyde, hyde at bucknell.edu Last update
October 4, 2009
Back to
CSCI 479's home page.