Scripting help


System: BeOS, Haiku, Zeta

Table of Contents

Get current folder
Keywords


 

Get current folder

To get the current folder there you are in the system use the command readlink.

Script=$(readlink -f $0)
folder=`dirname $Script`
echo $folder


back to Table of Content
Back to Keywords




Keywords

a b c
d e f
foldername
g h i
j k l
m n o
p q r
s t uvw
xyz    




Help for scripting by Christian Albrecht (Lelldorin) and Lorenz Glaser 2010
Made available by BeSly, the BeOS, Haiku and Zeta knowledge base.