yablog
tips collection
2011/07/31
shell tips: get absolute path
ラベル:
shell
,
tips
$ cat abspath.sh
#!/bin/sh
echo $(cd $(dirname $0) && pwd)/$(basename $0)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
100
No comments:
Post a Comment