1

Passing alias to a function

view story
linux-howto

http://www.unix.com – The objective of this function is to validate the file full path. Code: cat /dev/null > crontab_NOTEXISTS.txt function File_Existence # Accepts 1 parameter { file_name="$(echo $1)" echo "${file_name}" [ -f $file_name ] && break || echo "$file_name NOT FOUND" >> crontab_NOTEXISTS.txt } while read file_name do   File_Existence ${file_name} done < crontab_FILELISTS.txt The problem is that, when the file directory is denoted by an alias, in this example $ORACLE_HOME=/oracle/ora9.2, the function would accept the $ORACLE_H (HowTos)