|
Search Forums |
Tag Search |
Advanced Search |
Quick Links |
Contact Us |
Forum Rules |
Today's Posts |
FAQ |
Pictures & Albums |
All Albums |
Miscellaneous |
What is My IP |
Whois |
Mark Forums Read |
$ sed -n '$=' <filename>
wc -l compare_output.dat | cut -d " " -f 1
# num=$(wc -l < /etc/hosts) # echo "NUM='$num'" NUM=' 1605' # whoops! # ((num=$(wc -l < /etc/hosts))) # echo "NUM='$num'" NUM='1605' # that's better
# wc -l /etc/hosts | read num garbage # num=$(awk 'END{print NR}' /etc/hosts) # num=$(grep -c . /etc/hosts) # this excludes blank lines!