. myprofile
am 08.04.2008 12:36:32 von carlos.juvenalHow can I get the name and dir of myprofile file that I have dotted ?
Example:
/tmp/myprofile whose content is:
Me=Take_this_filename
Mydir=Take_the_dir_where_this_file_lives
Executing ( Dot . followed by a space + filename )
. /tmp/myprofile or . myprofile The var $Me should
provide the name of the file. ie. myprofile !
and $Mydir
the value /tmp/myprofile
Any ideas ?
Thank you,
Carlos