You need to package up a bunch of files, send them somewhere, and do something with them at the destination. It isn’t an uncommon scenario. The obvious answer is to create an archive — a zip or tar ...
'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, ...
In this post I'll show you how to create a self extracting bash script to automate the installation of files on your system. This script requires coreutils (for cat, tail), awk, gzip, tar and bash.