[NTLUG:Discuss] Easy (for someone besides me) shell script question
David Ross
davidross at classicnet.net
Tue Dec 28 17:56:15 CST 2004
How do i get the working path of a script?
Or how does the script know where it is?
#!/bin/sh
echo `pwd`
Produces the correct output if im in that directory,but if im in /usr i of
course get /usr.
I just want to echo back the path of the script.
Thanx
--
David Ross
Registered Linux User #344306
EMail is certified Windows® free.
More information about the Discuss
mailing list