Guest User

Untitled

a guest
Nov 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. for g in $master_ext_name_ddn; do
  2.  
  3. $VALOR=grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h"
  4.  
  5. done
  6.  
  7. for g in $master_ext_name_ddn; do
  8.  
  9. $VALOR=$(grep "$ruta" K?????$MES_ANTERIOR.rep | grep "$h")
  10.  
  11. if [ "$VALOR" == "" ] # Cuando no hay match la variable $VALOR estará vacía
  12. then
  13. echo "no hay match"
  14. else
  15. echo "Match!"
  16. fi
  17.  
  18. done
Add Comment
Please, Sign In to add comment