skip to main
|
skip to sidebar
Yue Zhang - Techlog
Wednesday, March 02, 2011
Bash note: get the path for the running script
The following expression returns the path the currently running script is from (note that the script might not be from pwd):
$(cd `dirname $0` && pwd)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Yue Zhang
I like programming, travelling, table tennis and electronic games. I program in C++, Java, Python, HTML, Javascript and other languages. Python is my favorate programming language. I like travelling in Europe and China.
View my complete profile
Blog Archive
▼
2011
(7)
►
July
(2)
►
June
(1)
▼
March
(1)
Bash note: get the path for the running script
►
January
(3)
►
2010
(5)
►
November
(1)
►
October
(3)
►
March
(1)
►
2009
(3)
►
November
(1)
►
August
(1)
►
April
(1)
►
2008
(16)
►
December
(1)
►
September
(3)
►
July
(3)
►
May
(1)
►
April
(1)
►
March
(4)
►
January
(3)
►
2007
(28)
►
November
(5)
►
October
(2)
►
September
(6)
►
August
(2)
►
June
(3)
►
May
(4)
►
April
(3)
►
March
(2)
►
January
(1)
►
2006
(20)
►
November
(2)
►
October
(1)
►
September
(3)
►
August
(1)
►
July
(2)
►
June
(1)
►
May
(7)
►
April
(2)
►
March
(1)
►
2005
(9)
►
September
(1)
►
August
(5)
►
July
(3)
No comments:
Post a Comment