In https://oracle-base.com/articles/misc/install-sample-schemas. Tim Hall proposes the following command (once positioned in a particular directory) to replace the string __SUB__CWD__
by the name of the current directory in sql files and dat files:
cd ...
perl -p -i.bak -e 's#__SUB__CWD__#'$(pwd)'#g' *.sql */*.sql */*.dat
How can adapt this command for Windows? Even if the name of directory is constant (ex: C:\app\soutou\product\18.0.0\dbhomeXE\demo\schema). I am not a user of Perl (Oracle dev)