ChinaUnix.net
相关文章推荐:

ubuntu shell bash

tmtime=1615 export tmtime if [ $tmtime -gt 0 -a $tmtime -lt 0730 ]; then echo 'tmtime gt 0000 and lt 0730' elif [ $tmtime -gt 1730 -a $tmtime -lt 1630 ]; then echo 'tmtime gt 1730 and lt 1630 ' fi 执行无输出 为啥?

by nuclearxin - Shell - 2008-01-21 10:53:21 阅读(1666) 回复(3)

相关讨论

原文连接:http://www.gracecode.com/Archive/Display/600 标题听起来像是在绕口令,不过很多兄弟都会将 bash、CSH 和 ZSH 以及 shell 之间的关系搞混。本人似乎又在“误人子弟”了,下面是我和 ghosTM55 兄弟的一些聊天记录,整理如下。 ghosTM55: 自动补全是 shell 极为有用的一项拓展功能 ,这句话有没有错? 手气不错: 应该是 bashshell 是一个接口,而不是程序 ghosTM55: 好的,明白了。那么为什么有 shell 分类这种说法呢...

by AMD-K6 - Shell - 2008-01-10 10:52:28 阅读(4340) 回复(10)

http://hpux.connect.org.uk/hppd/hpux/shells/bash-3.2/ 从上面URL 下载如下PKG: bash-3.2# ls -l total 5649556 -rw-r--r-- 1 root sys 4270080 Nov 17 18:19 bash-3.2-ia64-11.31.depot -rw-r--r-- 1 root sys 21585920 Nov 17 18:19 gettext-0.17-ia64-11.31.depot -rw-r--r-- 1 root sys 3072000 Nov 17 18:19 libiconv-1.12-ia64-11.31.depot -rw-r--r-- 1 root sys ...

by macer - HP文档中心 - 2008-11-17 18:33:05 阅读(2492) 回复(0)

see also shells Why a new shell? The shell is that part of the system which accepts your command and interprets what you have said. It launches other commands. The shell you get by default is not the only shell around. I chose the bash shell, mainly because it has a command history. If you're ever typed a long command, only to have it rejected because you mistyped it, then a shell history ...

by 剑心通明 - BSD文档中心 - 2008-04-09 11:16:34 阅读(1157) 回复(0)

我我在安装pro/e for linux时出现以下现象:不能安装.。 [root@shu cd1]# dir crack getpmt.csh nfo.nfo ptc_inst setup dsrc html proengineer_1.txt ptcsh0 uninstall [root@shu cd1]# sh setup : command not found setup: line 78: syntax error near unexpected token `elif' 'etup: line 78: ` elif [ "$1" = "?" -o "$1" = "-h" -o "$1" = "-help" ] [root@shu cd1]# setup的内容是: #!/bin/sh -f #======================...

by shu_18 - Shell - 2005-02-05 13:52:53 阅读(796) 回复(1)

PINE 4.58 MESSAGE TEXT sent-mail Msg 13 of 13 40% Date: Tue, 23 Nov 2004 04:58:53 -0500 (EST) From: Zhonghao Li To: bombli@yahoo.com hi, all: I wrote the following shell: #!/bin/bash #%1 head line number #%2 tail line number #%3 total line number function extract { if %1 -lt %2 -a %1 -lt %3 -a %2 -le %d then tail -n ...

by cs221313 - Shell - 2004-11-24 09:28:40 阅读(867) 回复(2)

Hi, all I have a bash code as follows: for divideLine in `grep -n '^End\ of' SimpleDraw` do echo $divideLine done when I run this command: grep -n '^End\ of' SimpleDraw. the output is: 54:End of Canvas.cpp 91:End of Canvas.h 396:End of CommandParser.cpp 494:End of CommandParser.h 525:End of CommonTypes.h 543:End of Coordinate.cpp 557:End of Coordinate.h but when I run the above bash code, it se...

by cs221313 - Shell - 2004-11-09 22:53:15 阅读(858) 回复(3)

如何在shell中进入一个目录? 比如 cd ${HOME},但是这样好像不行啊 谢谢

by season7 - Shell - 2004-07-15 12:57:42 阅读(924) 回复(6)

请帮忙看以下代码 #file a.sh #!/bin/sh chdir() { if [ ! -d "$1" ];then echo "$1" is not a directory exit 1 fi cd $1 PS1="`pwd`>" export PS1 } chdir 我是这样执行:sh a.sh /home 但他的输出是: is not a directory 而且我用—X 调试,$1成了空串? 请大虾帮忙

by weizzil_chinaun - Shell - 2003-12-24 09:10:22 阅读(703) 回复(2)

$ echo "a long long long > line" a long long long line $ echo "a long long long\ > line" a long long longline 第一个echo的显示结果,shell不会将换行字符转换成IFS,通常是空格表示,这样的显示结果我还理解。 第二个echo的显示结果,在换行字符前面加了一个\,结果显示结果就没有换行,我不理解的是那个 \ 后面接的换行字符,shell将他解译了什么? [ 本帖最后由 rcrong 于 2007-3-2 03:42 编辑 ]

by rcrong - Shell - 2007-03-02 10:49:32 阅读(1208) 回复(4)

我想要写一个运行进度,, 相当于显示安装进,“……/-|\10%……”大家看看我应该怎样写,那个光标的显示需要回一个字符,在bash里面应该怎么样控制,菜鸟一个,请帮忙!

by justinyun - Shell - 2005-07-09 13:11:14 阅读(1669) 回复(5)