ChinaUnix.net
相关文章推荐:

sh脚本 引用文件

我写了一个脚本如下: 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...

by coolend - Shell - 2005-04-26 12:40:52 阅读(1952) 回复(2)

指示系统用bsh执行?还是注释?给管理员看的?

by climbmount - Solaris - 2005-03-21 19:40:42 阅读(1715) 回复(4)

以下是我写的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文件,同样的内容应该如何写? 谢谢!~~~~~~

by zhoupp - Linux论坛 - 2005-10-17 20:24:00 阅读(749) 回复(1)

今天下载了一个后缀名为.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...

by caichunlei - 系统管理 - 2005-10-08 09:20:36 阅读(1279) 回复(0)

solaris9,默认bsh, 我从root登录,前一次登录时,可以在tomcat下的/bin中的运行startup.sh #startup.sh 可以执行, 然而等我注销后,重新以root登录时, 就不能执行.sh文件了, # startup.sh startup.sh: not found 但是从窗口用鼠标右键中的"运行"却可以执行. 为什么呢? 注:我第二次登录时,在登录界面没有选"前一次用户",而是选的第一个"公共用户登录",我不知道这个影不影响.

by sharklove - Solaris - 2005-01-20 15:14:51 阅读(1947) 回复(2)

求autogen.sh脚本程序? 要包含libtools工具的使用 [ 本帖最后由 chzht001 于 2006-8-21 15:52 编辑 ]

by chzht001 - C/C++ - 2006-08-21 15:48:56 阅读(827) 回复(0)

如何运行 .sh脚本

by abbish - BSD - 2004-12-03 21:06:03 阅读(2950) 回复(1)

请问大家如何写一个脚本(sh)可以查找出指定目录下所有只含一个文件的目录名

by oyzjin - Shell - 2005-12-03 10:40:06 阅读(2488) 回复(10)

.sh文件是什么文件?该如何执行和使用啊? 是不是有些程序运行前还要运行.sh文件

by wangchao66 - Solaris - 2003-12-17 10:33:58 阅读(6596) 回复(2)

问个菜问题,.sh的结尾的文件在solaris里怎么安装。

by jk_w70 - Solaris - 2004-05-22 11:47:17 阅读(1571) 回复(4)