我写了一个脚本如下: DIR1="/lbill/lbas/ric97/yhsj_format/init" DIR2="/lbill/lbas/ric97/yhsj_format/tmp" cd $DIR1 for i in `ls $DIR1` do mv $i /lbill/lbas/ric97/yhsj_format/tmp/$i cd $DIR2 uncompress $i done; cd $DIR2 for j in `ls $DIR2` do awk -f /lbill/lbas/ric97/yhsj_format/sh/yhsj_format.awk $j >/lbill/lbas/ric97/yhsj_format/format/$j mv $j /lbill/lbas/ric97/yhsj_...
by david993 - Shell - 2008-09-24 21:58:32 阅读(6787) 回复(34)
[code] #!/bin/sh ## filename: dfdir.sh ## script for getting file list of specified directory, ## then output them in order by size. ## Powered by Muddyboot, last modified: 2005-04-26 usage(){ echo -e "\nUsage: `basename $0` DIRECTORY [MIN_SIZE]\n" echo "Get file list of DIRECTORY, then output them in order by size." echo "If MIN-SIZE is specified, only print those greater than MIN-S...
以下是我写的ant.bat的内容 "%JAVA_HOME%/bin/java" -cp ant/ant.jar;ant/ant-launcher.jar;ant/ant-junit.jar;junit/junit.jar;"%JAVA_HOME%/lib/tools.jar" org.apache.tools.ant.Main %1 请教各位大侠:我想将上面的ant.bat对应成Linux下的ant.sh文件,同样的内容应该如何写? 谢谢!~~~~~~
今天下载了一个后缀名为.sh的安装文件文件。 安装是提示Installation aborted by user. 不知道是什么原因,具体的提示如下: [root@redhat9 home]# sh install.sh WARNING! You are attempting to install DSview 3.1.1.17 on a non-supported operating system version. You may continue with the installation, however DSView or your system may become unstable. Do you wish to continue with the installation [yes/n...
solaris9,默认bsh, 我从root登录,前一次登录时,可以在tomcat下的/bin中的运行startup.sh #startup.sh 可以执行, 然而等我注销后,重新以root登录时, 就不能执行.sh文件了, # startup.sh startup.sh: not found 但是从窗口用鼠标右键中的"运行"却可以执行. 为什么呢? 注:我第二次登录时,在登录界面没有选"前一次用户",而是选的第一个"公共用户登录",我不知道这个影不影响.