Homebash scripting How to fine total no. of lines in a file? byAlFarhat •July 28, 2015 0 p2.sh #!/bin/bash result=`cat /etc/passwd | wc -l` echo "Total number of users $result" :./p2.sh Tags: bash scripting find number of lines in bash shell linux shell scripting Facebook Twitter