L*********i 发帖数: 649 | 1 哪位老师给点指点? 我网上找了半天,不work 呀!
Part 2: Multifunction Utility Script
Write a new shell script called mu.s that acts as a front end command line
parser, calling the findtext.s, right.s, and count.s scripts as directed.
The command line arguments given to mu.s are arranged in groups, each
beginning with -f, -r, or -c (which selects either findtext.s, right.s, or
count.s function to be used), followed by the normal parameter(s) for that
function. For example, the command line:
mu.s -r 3 4 5 -f STAND_ALONE right.c
would perform the right triangle check on sides 3, 4, and 5, and then
display
the lines in right.c (with line numbers) that contain STAND_ALONE. If an
invalid - argument is given, display an error message giving bad - argument
and its parameter(s) and then continue with the next - argument. | k*****l 发帖数: 177 | 2 晕死,不是把第二个Bash脚本命令写进第一个 bash脚本里面就可以了吗?
【在 L*********i 的大作中提到】 : 哪位老师给点指点? 我网上找了半天,不work 呀! : Part 2: Multifunction Utility Script : Write a new shell script called mu.s that acts as a front end command line : parser, calling the findtext.s, right.s, and count.s scripts as directed. : The command line arguments given to mu.s are arranged in groups, each : beginning with -f, -r, or -c (which selects either findtext.s, right.s, or : count.s function to be used), followed by the normal parameter(s) for that : function. For example, the command line: : mu.s -r 3 4 5 -f STAND_ALONE right.c : would perform the right triangle check on sides 3, 4, and 5, and then
| z*****u 发帖数: 3010 | | l**********g 发帖数: 503 | 4 source 啊:
. another_fnc_file |
|