#!/bin/bash grid=() risks_grid=() i_max=0 j_max=0 while read line; do j_max=${#line} for ((j=0; j