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

Post a Comment

Previous Post Next Post