ChinaUnix.net
相关文章推荐:

bash shell script

菜鸟求助 There is a shell script of chanaging suffix of files,But cannot work at the moment. !#/bin/bash # # change the suffix (extension name) of files wronqPMTR=20 inputPMTR=2 oneFileConverted=1 numberOfFilesConverted=0 if [ $? -ne "$inputPMTR" ] then echo "Usage: `basename $0` old-suffix-name new-suffix-name" exit $wrongPMTR for fileName in *$1* do if [ -f "#...

by max44 - Shell - 2008-08-25 21:45:23 阅读(1440) 回复(4)

相关讨论

比如说我写了一个command.bash 文件,里面有统计输出的命令。 同时也建了一个commands.desktop文件。 当我点击在桌面上的commands.desktop 的icon时,这时要运行统计输出的命令。 我的问题是,我的icon 有图的时候就不运行命令,运行命令的时候,icon就没有图了 怎么解决呢? 是不是在redirection时写的不对呢?

by afton - Linux新手园地 - 2010-10-12 21:33:54 阅读(1240) 回复(2)

Linux程式设计-11.shell script(bash)--(10)控制圈while/until while list do list done 当list为True时,该圈会不停地执行。 例一 : 无限回圈写法 #!/bin/sh while : ; do echo "do something forever here" sleep 5 done 例二 : 强迫把pppd杀掉。 #!/bin/sh while [ -f /var/run/ppp0.pid ] ; do killall pppd done --------------------------------------------------------------------...

by mxlong_2 - Linux文档专区 - 2006-03-08 09:02:28 阅读(983) 回复(0)

"Hello world" shell script 照传统程式教学例,这一节介绍shell script的"Hello World"如何撰写。 -------------------------------------------------------------------------------- #!/bin/sh # Filename : hello echo "Hello world!" -------------------------------------------------------------------------------- 大家应该会注意到第一行的"#!/bin/sh"。在UNIX下,所有的可执行script,不管是那一种语言...

by swwin - Linux论坛 - 2003-06-09 19:13:35 阅读(562) 回复(0)

"Hello world" shell script 照传统程式教学例,这一节介绍shell script的"Hello World"如何撰写。 -------------------------------------------------------------------------------- #!/bin/sh # Filename : hello echo "Hello world!" -------------------------------------------------------------------------------- 大家应该会注意到第一行的"#!/bin/sh"。在UNIX下,所有的可执行script,不管是那一种语言...

by swwin - Linux系统管理 - 2003-06-09 19:13:35 阅读(532) 回复(0)

http://www.openchess.org/noitatsko/programming/ (2001-05-25 08:10:00) 众所皆知地,UNIX上以小工具着名,利用许多简单的小工具,来完成原本需要大量软体开发的工作,这一点特色,使得UNIX成为许多人心目中理想的系统平台。 在众多的小工具中,shell script算得上是最基本、最强大、运用最广泛的一个。它运用围之广,不但从系统启动、程式编译、定期作业、上网连线,甚至安装整个Linux系统,都可以用它来完成。 因为shell S...

by swwin - Linux论坛 - 2003-06-09 19:12:34 阅读(672) 回复(0)

http://www.openchess.org/noitatsko/programming/ (2001-05-25 08:10:00) 众所皆知地,UNIX上以小工具着名,利用许多简单的小工具,来完成原本需要大量软体开发的工作,这一点特色,使得UNIX成为许多人心目中理想的系统平台。 在众多的小工具中,shell script算得上是最基本、最强大、运用最广泛的一个。它运用围之广,不但从系统启动、程式编译、定期作业、上网连线,甚至安装整个Linux系统,都可以用它来完成。 因为shell S...

by swwin - Linux系统管理 - 2003-06-09 19:12:34 阅读(530) 回复(0)

shell script To Read IP Address ( Find Ip Address script ) #!/bin/sh # shell script scripts to read ip address # ------------------------------------------------------------------------- # Copyright (c) 2005 nixCraft project # This script is licensed under GNU GPL version 2.0 or above # ------------------------------------------------------------------------- # This scr...

by 啊泰 - BSD - 2008-06-28 20:06:40 阅读(1733) 回复(0)

FILE A 和 FILE B 比较两个 FILES 输出 相同的。。。 :?:

by diag - Solaris - 2003-02-24 14:15:17 阅读(892) 回复(9)

FILE A 和 FILE B 比较两个 FILES 输出 相同的。。。 :?:

by diag - Solaris - 2003-02-24 14:15:17 阅读(2712) 回复(7)