repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update README.md
[cmdllinux.git]
/
bash_n_examples
/
bash
/
path
/
script_path.sh
blob
f6a56e9793d296cea6448fd79ecd206a2885ffed
1
DIR
=
`dirname "
$0
"`
2
#echo "$DIR"
3
readlink
/
proc
/
$$
/
root
4
OPWD
=
`pwd`
5
#bash
6
#pushd . > /dev/null
7
cd
"
$DIR
"
8
SCRIPTPATH
=
`pwd -P`
9
SCRIPT
=
`basename "
$0
"`
10
echo
"
$SCRIPTPATH
/
$SCRIPT
"
11
#bash
12
#popd > /dev/null
13
cd
"
$OPWD
"