ChinaUnix.net
相关文章推荐:

juice sh

测试脚本文件 windeal@ubuntu:~/Windeal/shell$ cat test.sh #!/bin/bash echo "hello\n" echo -e "hello\n" windeal@ubuntu:~/Windeal/shell$ 复制代码 使用./*.sh执行结果为: windeal@ubuntu:~/Windeal/shell$ ./test.sh hello\n hello windeal@ubuntu:~/Windeal/shell$ 复制代码 使用sh *.sh执行结果为 windeal@ubuntu:~/Windeal/shell$ sh test.sh hello -e hello windeal@ubuntu:~/Windeal/shell$ 复制代码 另一个错...

by Windeal - Linux新手园地 - 2014-08-21 10:49:23 阅读(2632) 回复(6)

相关讨论

执行sh 的时候出现下面这么两行,请问是出了什么错呢? awk: cmd. line:29: (FILENAME=cbe_subscriber_dyn.unl FNR=1) fatal: attempt to access field -2147483648 脚本如下: currdate=`date '+%Y%m%d%H%M%S'` awk -v currdate=${currdate} 'BEGIN{ OFS="|" FS="|" }{ if (FILENAME == "msisdn.list") { msisdn[$1]=sprintf("%s,%s,%s",$2,$3,$4)...

by counter1219 - Shell - 2011-09-04 11:45:25 阅读(2508) 回复(4)

想了解下这两者的区别,那位大侠指点指点

by Rusty8080 - Shell - 2010-04-23 00:39:52 阅读(7020) 回复(8)

sh 是明文的,请问各路朋友有没有什么可以对它加密的软件,而又不影响脚本执行

by udb6688 - Shell - 2006-11-26 13:05:35 阅读(1341) 回复(1)

装显卡驱动,关闭了SELINUX,并用init3启动 但#sh *.run 什么反应也没有,一个空行,然后就退到# 这是怎么回事?

by yurenyahe - 系统管理 - 2006-10-30 13:07:11 阅读(800) 回复(2)

装显卡驱动,关闭了SELINUX,并用init3启动 但#sh *.run 什么反应也没有,一个空行,然后就退到# 这是怎么回事?

by yurenyahe - Linux系统管理 - 2006-10-30 13:07:11 阅读(1143) 回复(2)

各位大虾: 我用的是redhat 3操作系统,安装了一个软件(其源文件类型 *.tar) 安装成功后 生成了一个可执行文件(比如名字叫:start) 但我运行该执行文件时 #start 报错 command not found 只有用 #sh start 才能运行 为什么会这样? 还有我想把该执行文件生成快捷方式 怎么设置 以上是我的问题希望能得到各位高手的帮助 谢谢!

by landmarklj - 系统管理 - 2006-10-23 19:57:01 阅读(823) 回复(5)

各位大虾: 我用的是redhat 3操作系统,安装了一个软件(其源文件类型 *.tar) 安装成功后 生成了一个可执行文件(比如名字叫:start) 但我运行该执行文件时 #start 报错 command not found 只有用 #sh start 才能运行 为什么会这样? 还有我想把该执行文件生成快捷方式 怎么设置 以上是我的问题希望能得到各位高手的帮助 谢谢!

by landmarklj - Linux系统管理 - 2006-10-23 19:57:01 阅读(1352) 回复(5)

测试脚本文件[code]windeal@ubuntu:~/Windeal/shell$ cat test.sh #!/bin/bash echo "hello\n" echo -e "hello\n" windeal@ubuntu:~/Windeal/shell$ [/code]使用./*.sh执行结果为:[code]windeal@ubuntu:~/Windeal/shell$ ./test.sh hello\n hello windeal@ubuntu:~/Windeal/shell$ [/code]使用sh *.sh执行结果为[code]windeal@ubuntu:~/Windeal/shell$ sh test.sh hello -e hello windeal@ubuntu:~/Windeal/shell$[/code...

by Windeal - Solaris - 2014-08-15 11:31:42 阅读(2750) 回复(4)

/sbin/sh and /usr/bin/sh shells 都是 Bourne shells. /sbin/sh is statically linked /usr/bin/sh is dynamically linked. /bin/sh /bin目录是到/usr/bin的链接 先看看属性: # ls -l /sbin/sh -r-xr-xr-x 2 bin root 251712 Jul 16 1997 /sbin/sh # ls -l /usr/bin/sh -r-xr-xr-x 3 bin root 88620 Jul 16 1997 /usr/bin/sh # file /sbin/sh /sbin/sh: ELF 32-bit MSB executable SPARC Version 1, statically linked,...

by drivehq - AIX - 2011-07-31 20:24:48 阅读(2831) 回复(1)

在执行xxx.sh文件时,有两种方法: sh xxx.sh和./xxx.sh 这两种方法有什么区别吗? 因为有时候会遇到这种情况: 使用命令./xxx.sh,会报错误 bash: ./RUN_setup.sh: 没有权限 但使用命令sh xxx.sh则一切正常。

by jiangshachina - 系统管理 - 2006-07-05 15:33:51 阅读(1483) 回复(13)