Shell 變數 - Linux

By Barb Cronin
at 2010-09-30T16:36
at 2010-09-30T16:36
Table of Contents
大家好,我想請問一下有關於shell variable的問題
我使用的是bash
想問一下如果我在bashrc設了以下變數
export HOSTNAME=hostname
export PATH=/.../${HOST}/
之後在command line底下,echo $PATH
shell就只是把${HOST}換成hostname 我要怎麼讓shell
自動執行hostname這個指令 然後在echo $PATH
的時後能把PATH直接換成主機的路徑呢 感謝
--
Tags:
Linux
All Comments

By Joseph
at 2010-10-04T03:36
at 2010-10-04T03:36

By Jacky
at 2010-10-07T16:11
at 2010-10-07T16:11
Related Posts
Re: OpenOffice 的另一分支 LibreOffice

By Dinah
at 2010-09-30T10:47
at 2010-09-30T10:47
Ubuntu+pcmanx一問

By Ethan
at 2010-09-30T10:45
at 2010-09-30T10:45
XP & uBuntu雙系統 grub問題

By Kama
at 2010-09-30T09:02
at 2010-09-30T09:02
如何在沒有root的權限下修改預設shell

By George
at 2010-09-30T08:56
at 2010-09-30T08:56
請問 locate 指令

By Connor
at 2010-09-30T00:53
at 2010-09-30T00:53