Write a shell scripts that finds total no. of users and finds out how many of them are currently logged in.
cat /etc/passwd>user.txt set `wc -l user.txt` log=`who|wc -l` echo "There are $1 users in network " echo "There are $log user loged in rite now" -------------------------------------------------------------------------------- output: $ sh7 There are 8 users in network There are 1 user loged in rite now