Como $valor está dentro de un bucle for, quiero preguntarle en un if si trajo o no el grep en cuestión.
$valor
for
if
grep
for g in $master_ext_name_ddn; do VALOR=grepVALOR=$(grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h") done
for g in $master_ext_name_ddn; do VALOR=grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h" done
for g in $master_ext_name_ddn; do VALOR=$(grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h") done
for g in $master_ext_name_ddn; do $VALOR=grepVALOR=grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h" done
for g in $master_ext_name_ddn; do $VALOR=grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h" done