Here is my work:
wc -w $3/lab1.txt
words=$(wc -w $3/lab1.txt)
wc -m $3/lab1.txt
characters=$(wc -m $3/lab1.txt)
echo $((characters / words))
The two variables that I have setup work perfectly and they give the correct output but when I try to divide characters from words using arithmetic expansion. I get an error and I wasn't wondering if I could do it this way or not.
Here's the error: enter image description here