由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 如何从Bash script1 call Bash script2 ? 愿意发包子求指教!
相关主题
bash script真难看懂shell scripting 问题
命令后面加“> ./mylogfile.$$ 2>&1”这一串是什么意思呢?靠,freenx client quiting
有没有parser的sample code?怎么把数据文件用动态图表的形式表示出来
一行命令找出html中所有img src?Amex Blue Cash preferred 6%现金回扣+$150bonus超市专用信用卡
how to escape $ in shell script?Amex Blue Cash preferred 6%现金回扣+$150bonus超市专用信用卡
shell scripting 求助每次打开IE总是出现hao123页面,也不是主页设置的页面
nxserver在ubuntu上怎么能够自动启动?ubuntu 8.10 真tmd烦,搞半天都没找到root
grep 的很奇怪的现象一个简单的bash脚本怎么写?
相关话题的讨论汇总
话题: bash话题: line话题: argument话题: command话题: alone
进入Linux版参与讨论
1 (共1页)
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
3
不是把路径告诉第一个就可以了吧
l**********g
发帖数: 503
4
source 啊:
. another_fnc_file
1 (共1页)
进入Linux版参与讨论
相关主题
一个简单的bash脚本怎么写?how to escape $ in shell script?
bash中比较无聊的功能shell scripting 求助
问一个ssh的问题nxserver在ubuntu上怎么能够自动启动?
Bash 4.0 screenshotsgrep 的很奇怪的现象
bash script真难看懂shell scripting 问题
命令后面加“> ./mylogfile.$$ 2>&1”这一串是什么意思呢?靠,freenx client quiting
有没有parser的sample code?怎么把数据文件用动态图表的形式表示出来
一行命令找出html中所有img src?Amex Blue Cash preferred 6%现金回扣+$150bonus超市专用信用卡
相关话题的讨论汇总
话题: bash话题: line话题: argument话题: command话题: alone