On Thu, Mar 06, 2003 at 09:32:48PM +0530, Shridhar Daithankar<[EMAIL PROTECTED]> wrote:
> On Thursday 06 Mar 2003 10:03 pm, nimish wrote:
> > What is the command for listing out all the users in linux
> 
> cat /etc/passwd |cut -d":" -f1|grep -v ^#

Ugh. A pipeline of three programs where one can do??

awk -F: '{ print $1 }' /etc/passwd

Binand

-- 
Russian Roulette with Unix:
while :; do kill $RANDOM &> /dev/null && break || sleep 1; done


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to