I'm not quite clear on what it is you're trying to do, but you can always output the script result to a file and then cat the file to read it back.
In trying to keep it as simple as possible, think of < as importing and > as exporting. This is not always the case, but for this it works. Redirection is very possible, and important!
http://mywiki.wooledge.org/BashGuide/InputAndOutput#RedirectionYou could add an error check to see if there was an input file. Adding this line to your script will export any errors to the file "errorcheck".
Code
> done 2> errrorcheck