一個shell問題 - Linux
By Xanthe
at 2010-08-13T14:44
at 2010-08-13T14:44
Table of Contents
各位大大好
請問一下在shell中如何將目前的路徑儲存在變數中???
ex:
1.shl
aa=pwd
echo $aa
---------------
我試的結果是畫面會出現/usr/tmp(工作目錄在/usr/tmp下)
但不會echo出來
另外使用aa=`pwd`
仍燃不會出來
請各位幫幫忙,或有什麼參考資料可供參考
謝謝
--
請問一下在shell中如何將目前的路徑儲存在變數中???
ex:
1.shl
aa=pwd
echo $aa
---------------
我試的結果是畫面會出現/usr/tmp(工作目錄在/usr/tmp下)
但不會echo出來
另外使用aa=`pwd`
仍燃不會出來
請各位幫幫忙,或有什麼參考資料可供參考
謝謝
--
Tags:
Linux
All Comments
By Rebecca
at 2010-08-18T14:42
at 2010-08-18T14:42
By Gilbert
at 2010-08-20T21:59
at 2010-08-20T21:59
By Brianna
at 2010-08-20T23:32
at 2010-08-20T23:32
By Kumar
at 2010-08-22T11:03
at 2010-08-22T11:03
By Gary
at 2010-08-27T10:45
at 2010-08-27T10:45
By Elizabeth
at 2010-08-31T13:34
at 2010-08-31T13:34
By Rebecca
at 2010-09-01T16:23
at 2010-09-01T16:23
By Una
at 2010-09-05T11:41
at 2010-09-05T11:41
By Hardy
at 2010-09-07T01:34
at 2010-09-07T01:34
By Ethan
at 2010-09-09T09:46
at 2010-09-09T09:46
By Ursula
at 2010-09-14T02:28
at 2010-09-14T02:28
By Christine
at 2010-09-18T05:51
at 2010-09-18T05:51
By Hedy
at 2010-09-19T18:33
at 2010-09-19T18:33
Related Posts
ctags 跳到 header file?
By Ida
at 2010-08-13T14:29
at 2010-08-13T14:29
如何只拷貝普通檔?
By Yedda
at 2010-08-13T11:51
at 2010-08-13T11:51
mandriva2010.1 madwifi驅動程式安裝出 …
By Victoria
at 2010-08-12T23:16
at 2010-08-12T23:16
請問SVN的錯誤訊息? svn: OPTIONS request failed on
By Carolina Franco
at 2010-08-12T22:48
at 2010-08-12T22:48
Etoile桌面環境
By Edward Lewis
at 2010-08-12T22:33
at 2010-08-12T22:33