Something I think some people could find useful is this cool BASH emulator below. You can use it to test your code from variables to loops and possibly much more.
Bash Emulator – Scripting Hints and Tips
Check out some of my Bash tips and scripts HERE and try them out for yourself in the window above !
I take no credit for writing this emulator, just found it on the net!