Hello I'm a total beginner in shell scripting.
I have a log file named logA.log and a B.sh file.
In log file there are some lines and I want to find the number of a spesific word in that log (in last 10 line) by executing the B.sh
In B I wrote
#!/bin/bash
variableString = tail -10f /home/appuser/logA.log
grep ERROR $variableString | wc -l
but the output is:
variableString: command not found
I know "grep" line is working but I cannot reach the logA in b.sh.
How can I define a variable called variableString as last 10 line of logA
 
     
     
     
    