Linux Shell Bash 精彩脚本示例/content/10/0303/18/155970shtml
这些脚本展示了一些有趣的shell编程技术, 但是它们并不适合放入本文档的文本讲解中. 不过它们还是非常有用, 运行和分析它们都是很有意思的事.
译者: 这里留给那些有能力而且有多余时间的读者来详读, 个人认为翻译这些注释有点画蛇添足.
例子 A-1. mailformat: 格式化一个e-mail消息
1?#!/bin/bash 2?# mail-format.sh (ver. 1.1): Format e-mail messages. 3? 4?# Gets rid of carets, tabs, and also folds excessively long lines. 5? 6?# ================================================================= 7?# Standard Check for Script Argument(s) 8?ARGS=1 9?E_BADARGS=65 10?E_NOFILE=66 11? 12?if [ $# -ne $ARGS ] # Correct number o
原创力文档

文档评论(0)