bash scripts for ims