sh script for grid