RicardoPereira
Programmer
I must rename a file using the content of a file.
In my stderr.log i have:
2541
---------------
Now in my script i have the code to get the number:
let NR=`tail -3 /home/xback/dmsbck.info/tmp_dados.info | head -1`
this should get the 2541, but i got the error
bash: let: NR=: syntax error: operand expected (error token is "=")
What should i do to get this number and put in a variable?
Thanks in advanced
In my stderr.log i have:
2541
---------------
Now in my script i have the code to get the number:
let NR=`tail -3 /home/xback/dmsbck.info/tmp_dados.info | head -1`
this should get the 2541, but i got the error
bash: let: NR=: syntax error: operand expected (error token is "=")
What should i do to get this number and put in a variable?
Thanks in advanced