'found: work' could turn into 'foundork' if the directory name was '/w^H^H^H^Hork', or maybe using ^? depending on your system. I would open both scripts with vi so you can see control codes, ...
BASH is a Unix shell and command language which can run Shell Script files. You do not need to install Ubuntu or any other Linux Distros unless your scripts need the ...