Hey everyone,
I am writing a small script which has to take the number of lines in a file, divide it by two, and store it as a variable:
I first tried to store the number of lines in a file with:
Code:
let MIDPOINT=`echo "wc -l $FILE"`
but realized that this will try to store the number of lines and the file name. How can I change this to store only the number of lines?