摘要:
Shell脚本在执行时,也可以像命令和应用程序一样,接收脚本参数。一个应用实例:vi addhead.sh:suaddhead ns=591 $2执行:./addhead.sh rtm_step10_lap.dat rtm_step10_lap.su(其中,rtm_step10_lap.dat是输... 阅读全文
posted @ 2015-10-23 15:54
tsguosj
阅读(14486)
评论(0)
推荐(0)
摘要:
1. 用read获取用户的输入:举例:example.sh, 查看: cat example.sh:#!/bin/bash# This is a sample script file.# Accept user input for demonstration.#使用read命令将用户的输入保存到变量... 阅读全文
posted @ 2015-10-23 10:40
tsguosj
阅读(1586)
评论(0)
推荐(0)
浙公网安备 33010602011771号