- 16
- 0
- 约1.83万字
- 约 14页
- 2017-08-31 发布于河南
- 举报
Linux Shell Script 教学
How to write a shell script
Introduction
A shell is a command line interpretor. It takes commands and executes them. As such, it implements a
programming language. The Bourne shell is used to create shell scripts -- ie. programs that are
interpreted/executed by the shell. You can write shell scripts with the C-shell; however, this is not covered
here.
Creating a Script
Suppose you often type the command
find . -name file -print
and youd rather type a simple command, say
sfind file
Create a shell script
% cd ~/bin
% emacs sfind
% page sfind
find . -
原创力文档

文档评论(0)