How to fine total no. of lines in a file?
p2.sh #!/bin/bash result=`cat /etc/passwd | wc -l` echo "Total number of users $result" :./p2.sh
Read morep2.sh #!/bin/bash result=`cat /etc/passwd | wc -l` echo "Total number of users $result" :./p2.sh
Read more