I have a file named test$file.sql
and I like to run it from SQLcl (22.4.0.342.1215) from Linux (and macOS). I tried the following:
SQL> @test$file.sql
Error starting at line : 1 in command -
@test$file.sql
Error report -
SP2-0310: Unable to open file: "test.sql"
SQL> @test\$file.sql
Error starting at line : 1 in command -
@test\$file.sql
Error report -
SP2-0310: Unable to open file: "test\.sql"
SQL> @"test$file.sql"
SQL> @"test$file.sql"
Error starting at line : 1 in command -
@"test$file.sql"
Error report -
SP2-0310: Unable to open file: "test.sql"
Has anyone an idea how to escape the $
from SQLcl?
Thanks!