首页 > 科技 > Quotation

Quotation

2006年5月10日 11点00分 发表评论 阅读评论

1.Double quotation “” is able to quota every strings except of back slash””, back quotation”`”(located nearby 1/! on the keyboard),and dollar”$” character.

2.Single quotation” could quota any strings including “,`$”.

3.Back quotation“,set the system output to variable. what was contain in pairs of “ will be issued as command. for example:
# echo ‘hello’ (single quotation)
hello
# echo `hello`
bash: hello: command no found
# echo `date`
2006年05月09日 星期二 (In my mandriva)
# mydate=`date`
# echo $mydate

How many users are logging on the system:
# echo “there is `who |wc-l` user in the system”

4.Back slash””: convertion
# echo *
it will list all the directy
# echo *
*
# echo “$99.99”
99.99
# echo “$99.99”
$99.99

分类: 科技 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.
您必须在 登录 后才能发布评论.