#!/bin/bash
for i in $(cat /etc/passwd | cut -d: -f 1) ; do
echo username:$i
done
echo "Total number of user is $(cat /etc/passwd | wc -l)"
Search
Tuesday, August 19, 2008
Subscribe to:
Post Comments (Atom)
This blog is dedicated to people who are interested to learn Linux. Till now I have been written more than 200 bash scripts and I am sharing few of them in this blog. You can also find some installation steps of Open source products on linux.
No comments:
Post a Comment