单引号和双引号的区别:
set name=hello
ubutu@ubutu-desktop:~$ echo 'welcome $name'
welcome $name
ubutu@ubutu-desktop:~$ echo "welcome $name"
welcome hello
从中我们可以知道,单引号比双引号更纯粹的,引号里面的任何东西都不解释。双引号则不然。
the beginning of shell
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 198
- 注册时间: 2009-05-16 14:22
the beginning of shell
missing is i missing you...
- tenzu
- 论坛版主
- 帖子: 36924
- 注册时间: 2008-11-21 20:26
-
- 帖子: 18311
- 注册时间: 2008-01-09 22:41
Re: the beginning of shell
basic shell knowledge
- xiaomao101
- 帖子: 474
- 注册时间: 2006-04-05 18:12
- 联系:
-
- 帖子: 198
- 注册时间: 2009-05-16 14:22
Re: the beginning of shell
ubutu@ubutu-desktop:~/malloc$ echo $$name
2046name
?
2046name
?
missing is i missing you...
-
- 帖子: 64
- 注册时间: 2008-12-30 8:14
- 来自: 河南洛阳
Re: the beginning of shell
路过 ,学习 ,也就 勉强看懂,自己 还没到这个层次。
- xiaomao101
- 帖子: 474
- 注册时间: 2006-04-05 18:12
- 联系:
Re: the beginning of shell
$$显示当前进程的pid,你可以建立一个脚本,然后运行,在ps看看他的pid(脚本设延迟,要不立马就退出了)kinfinger 写了:ubutu@ubutu-desktop:~/malloc$ echo $$name
2046name
?
-
- 帖子: 198
- 注册时间: 2009-05-16 14:22