I have personally found for block commands using small shell scripts and sed/awk to a be a life saver and a simple way to extend Joe without macros.