I have a ROFCEarRun.sh file which I'm trying to execute, it reads $ORACLE_HOME from a properties file.
The properties file contains a line with the following property.
ORACLE_HOME=/scratch/oraofss/Ora19c/app/product/19.3/dbhome_1/
When I execute the sh file, I get the following error:
ROFCEarRun.sh: line 100: cd: $'/scratch/oraofss/Ora19c/app/product/19.3/dbhome_1/\r/jdbc/lib/': No such file or directory
I checked the line 100 in the file, it has the following code:
cd $ORACLE_HOME/jdbc/lib/
I verified that the path exists by running ‘cd $ORACLE_HOME/jdbc/lib/’ on the shell.
Can anyone help me understand why that extra ‘\r’ is getting appended after oracle_home in that error? (there are no trailing white space characters in properties file)