I'm recieving this in the error -
syntax error near unexpected token `total_lines=$(wc -l < $extracted_log_path_value)'
$extracted_log_path_value
stores the path of the file which is correctly defined. I'm using simple shell script. No plugin is installed. I have also tried following commands - `
syntax error near unexpected token `total_lines="$(wc -l "$extracted_log_path_value" | cut -d' ' -f1)"'.
This is the code that is written in shell script. I'm pasting the actual line as well -
total_lines="$(wc -l "$extracted_log_path_value" | cut -d' ' -f1)"
`