shell argument 特殊符號 - Linux

By Zanna
at 2011-04-29T06:20
at 2011-04-29T06:20
Table of Contents
因為要argument會讀取到一些特殊符號,但是在讀取後
往往特殊符號會被忽略。
例如:
a.sh內容
echo $1
執行
./a.sh '
輸出卻會是空白
除了在特殊符號前加上\之外
是否有別的方式?
--
Tags:
Linux
All Comments

By Franklin
at 2011-05-03T12:53
at 2011-05-03T12:53

By Caitlin
at 2011-05-03T22:53
at 2011-05-03T22:53

By Elizabeth
at 2011-05-05T19:46
at 2011-05-05T19:46

By Queena
at 2011-05-06T03:22
at 2011-05-06T03:22
Related Posts
11.04beta2會自動更新成正式版嗎?

By Rachel
at 2011-04-28T23:28
at 2011-04-28T23:28
Ubuntu新版本趨於適用平板計算機

By Rae
at 2011-04-28T22:36
at 2011-04-28T22:36
UBUNTU 10.04 有關電池電量的部份

By Agnes
at 2011-04-28T22:35
at 2011-04-28T22:35
Ubuntu 11.04已可以下載

By Frederic
at 2011-04-28T17:16
at 2011-04-28T17:16
vsftp的問題

By Edward Lewis
at 2011-04-28T14:07
at 2011-04-28T14:07