shell脚本
来源:互联网 发布:怎么用软件开网店 编辑:程序博客网 时间:2024/05/26 02:54
自己学习shell时候写的一个脚本:
#!/bin/csh
rm -f -r testd
mkdir testd
set cpywj = /home/user00/testd/testdf
set cpmdwj = ./testd/testdf
set i=1
set j = 0
set max=$2
while ( $i <= $max )
if ( $1 == A ) then
@ j = $i * 2 - 1
cp $cpywj $cpmdwj$j
chmod u+x $cpmdwj$j
chmod g+x $cpmdwj$j
chmod o-r $cpmdwj$j
else
@ j = $i * 2
cp $cpywj $cpmdwj$j
chmod u+x $cpmdwj$j
chmod g+x $cpmdwj$j
chmod o-r $cpmdwj$j
endif
@ i++
end
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell 脚本
- SHELL 脚本
- shell脚本
- shell脚本
- shell 脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- shell脚本
- 推荐引擎:信息逆流
- RegEx Tpis
- 公积金及其社保补缴办理
- SharZipLib 例子
- Silverlight 动态调用XAP 发生异常解决方法
- shell脚本
- ubuntu 11.10 nginx压力测试
- Linux下移植PPPOE
- The problem of one shared object reference between 100 threads.
- JavaScript解析过程你真的清楚吗??
- VB.NET GDI+ 天气预报
- qt中的一个问题
- ApmServ mysql(#1307 :Failed to create procedure 和#1577等错误)解决方法
- 随机数产生函数总是产生相同随机数的原因