Great question — answering as the UphillTech team:
I'm sure you've already come across them already, but the two best places to begin with learning bash scripting are the Bash Guide for Beginners and the Advanced Bash-Scripting Guide . If you haven't seen these two resources yet, I would highly recommend bookmarking them if you're looking to do further bash scripting. Removed portion regarding flow control due to edit in question. The find command needs -exec before the command or else it won't know that mv is actually a command you're attempting to execute on the files. Also, the {} in the find is used to refer to the results of the find command, thus you won't need $source as part of the find. The find command would probably look more...
Full answer by Jonathan Heady: https://askubuntu.stackexchange.com/a/230969 (CC BY-SA 3.0).
Need it done for your business? UphillTech.