如何把current directory存進變數 - Linux

By Elvira
at 2012-01-24T08:39
at 2012-01-24T08:39
Table of Contents
希望能夠用簡單的方法
把current folder name以string的型式存進變數中
eg.
current folder: /home/Documents
x=......<-- store 'Documents' into x as string
echo x 印出 Documents
不知道可以如何操作呢
可不可能一個command 可以完成~
我還不會寫 perl 等高階的shell script
謝謝!
--
把current folder name以string的型式存進變數中
eg.
current folder: /home/Documents
x=......<-- store 'Documents' into x as string
echo x 印出 Documents
不知道可以如何操作呢
可不可能一個command 可以完成~
我還不會寫 perl 等高階的shell script
謝謝!
--
Tags:
Linux
All Comments

By Michael
at 2012-01-28T12:40
at 2012-01-28T12:40

By Emily
at 2012-01-30T08:11
at 2012-01-30T08:11

By Blanche
at 2012-02-02T03:45
at 2012-02-02T03:45

By Caroline
at 2012-02-04T17:47
at 2012-02-04T17:47

By Lauren
at 2012-02-09T13:35
at 2012-02-09T13:35
Related Posts
怎麼完整移除套件?(archlinux)

By Ingrid
at 2012-01-23T11:38
at 2012-01-23T11:38
如何自行編譯/打包/測試/回報/參與 HIME?

By Heather
at 2012-01-22T15:46
at 2012-01-22T15:46
掛載 ntfs 非 unix-like 的硬碟

By Hedwig
at 2012-01-21T21:16
at 2012-01-21T21:16
怎麼把原有OS導入GRUB?

By Zanna
at 2012-01-21T11:52
at 2012-01-21T11:52
關於sudo的簡單問題

By Megan
at 2012-01-21T05:36
at 2012-01-21T05:36