admin 管理员组

文章数量: 887032


2024年2月20日发(作者:stripe登录)

read srcechoecho -n "destination fold:"read descp -arf $src $desif $?; thenecho "copy sucessful!"elseecho " copy fail"fi;;2)echo -n "the file to be renamed:"read srcechoecho -n "the new file:"read desmv $src $desif $?; thenecho "rename sucessful!"elseecho " rename fail"fi;;3)echo -n "the file to be removed:"read srcrm -rf $srcif $?; thenecho "remove sucessful!"elseecho " remove fail"fi;;4)echo -n "the file to be found:"read srcfind $HOME -name $src;;

echo "************************************************"echoecho -n " select:"read choiceechocase $choice in1)echo -n "source file:"read srcechoecho -n "destination fold:"read descp -arf $src $desif $?; thenecho "copy sucessful!"elseecho " copy fail"fi;;2)echo -n "the file to be renamed:"read srcechoecho -n "the new file:"read desmv $src $desif $?; thenecho "rename sucessful!"elseecho " rename fail"fi;;3)echo -n "the file to be removed:"read srcrm -rf $srcif $?; then2.

参考程序:#!/bin/shi=1while [ $i -le 50 ]douserdel -r stud${i}i=$(($i+1 ))doneecho "remove sucessful!"elseecho " remove fail"fi;;4)echo -n "the file to be found:"read srcfind $HOME -name $src;;5) exit;;*) echo "Invalid option";;esacdone2.参考程序:#!/bin/shi=1while [ $i -le 50 ]douserdel -r stud${i}i=$(($i+1 ))done3.参考程序:#! /bin/sh –for i in 1 2 3 4 5 6 7 8 9dofor j in 1 2 3 4 5 6 7 8 9do

if ( test $j -le $i ) thenecho -ne `expr $i * $j` "t"elseechobreakfidonedon


本文标签: 登录 程序 作者 参考