I would like to run this command on all .wa files within this folder (ideally with subfolders): ./runtest Basic prog -t abc.wa
The script I wrote returns an error:
for filename in ./examples/*.wa;
do
./runtest Basic prog -t "${filename}"
done
When running this with ./testscript I get: Syntax error: word unexpected (expecting "do")
Can the script also add to the console output the name of the current file?