sh是幹什麽用的
sh是幹什麽用的? 我的linux字典裏竟然沒有這個解釋 执行脚本程序的命令! 請問什麽是腳本程序? 介绍一个脚本作者:javalee
#!/bin/ksh
# Script name: Speller
#
#
# Purpose: Check and fix spelling errors in a file
#
exec < tmp # opens the tmp file
while read line# read from the tmp file
do
print $line
print -n "Is this word correct? [Y/N] "
read answer < /dev/tty# read from the terminal
case $answer in
[Yy]*)
continue
;;
*)
print "New word? "
read word < /dev/tty
sed "s/$line/$word/" tmp > error
mv error tmp
print $word has been changed.
;;
esac
done
这就是!!!!!!!!!!!!!!!!!! :oops:
页:
[1]