Hi, I have problems when you save a variable of a command. I have put the following line:
CONEXION_BAGDAD = $ (grep-c "Please login with USER and PASS" $ LOG_FILE_BAGDAD)
But I returned the following error: syntax error at line 67: `CONEXION_BAGDAD = $ 'unexpected
Because it can happen?
Thank you.
you can use any of the following. But don't put space between variable name and command. CONEXION_BAGDAD=`grep-c "Please login with USER and PASS" $ LOG_FILE_BAGDAD` CONEXION_BAGDAD=$(grep-c "Please login with USER and PASS" $ LOG_FILE_BAGDAD)
Thank you!!, and I think I solved it.