EECS 1012 Lecture Notes - Lecture 21: Bourne Shell, Shell Script

16 views2 pages
EECS 1012 Lecture 21 Notes
Introduction
The Elements of a Command Language
In addition to the usual commands, the UNIX and Linux shells contain a set of powerful
utility commands and other features that allow the creation of very sophisticated
command programs.
In UNIX and Linux, shell scripts are a fundamental way of getting work done.
Shell scripts can be executed just as if they were programs
In fact, due to the power of the shell script language, it is frequently possible to avoid
writing a normal program by using a shell script instead.
You’e alread see a eaple of a Windows command language script that assists the
user in performing a routine computer task.
Many Linux operating system operations are, in fact, shell scripts.
Shell scripts often can be used in place of a conventional program, as well.
The example shown 9 is a UNIX Bourne shell program that determines the nearest major
airport to an arbitrary city entered by the user.
Scripting languages are expanded forms of command languages, often encompassing
features well beyond those found in a standard command language.
Some scripting languages even provide portability between different operating systems.
Perl, JavaScript, PHP, and Python are examples of portable scripting languages.
Like any programming language, there are certain elements in a command language
that affect the usefulness of the language.
The choice of commands and utilities is an important consideration, but it is not the only
consideration.
There are other features that enhance the value of a language.
These are some of the most important features of a command language
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in
ammarmarta2020 and 40175 others unlocked
EECS 1012 Full Course Notes
10
EECS 1012 Full Course Notes
Verified Note
10 documents

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents