G
g.kanaka.raju
Hi,
I wanted to write a function that gets the file path as an argument.
The file
path make take one of the two forms :
(i) Absolute file path e.g., /usr/local/file.log or
(ii)it may be $USRLOCAL/file.${EXT} where USRLOCAL=/usr/local and
$EXT=log
Could any one of you suggest a good function which takes a string with
env varaibles and returns plain string with the values of env variabels
sustituted.
Fox example,
Input : $USRLOCAL/file.${EXT} where USRLOCAL=/usr/local and $EXT=log
Output : /usr/local/file.log
Thanks in advance.
Regards,
Raju
I wanted to write a function that gets the file path as an argument.
The file
path make take one of the two forms :
(i) Absolute file path e.g., /usr/local/file.log or
(ii)it may be $USRLOCAL/file.${EXT} where USRLOCAL=/usr/local and
$EXT=log
Could any one of you suggest a good function which takes a string with
env varaibles and returns plain string with the values of env variabels
sustituted.
Fox example,
Input : $USRLOCAL/file.${EXT} where USRLOCAL=/usr/local and $EXT=log
Output : /usr/local/file.log
Thanks in advance.
Regards,
Raju