Computing.Net > Forums > Unix > Unix for loop

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unix for loop

Reply to Message Icon

Name: SG
Date: August 28, 2002 at 16:56:15 Pacific
Comment:

I am trying to write a Unix program that accepts a user login id or name and displays login id, name, default shell, and last login date and time. I was trying to use a for loop but couldn't get it to work. Can anyone help me.



Sponsored Link
Ads by Google

Response Number 1
Name: LANkrypt0
Date: August 29, 2002 at 09:55:30 Pacific
Reply:

So you want this program to keep on accepting the login id/name until you tell it to stop?


0

Response Number 2
Name: tom z.
Date: August 30, 2002 at 02:52:45 Pacific
Reply:

You could try and use a combination of grep and awk from the /etc/passwd file, I believe all that data is there.

Hope this helps, good luck.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Unix for loop

For Loop Iteration www.computing.net/answers/unix/for-loop-iteration/7267.html

problem with grep in a for loop www.computing.net/answers/unix/problem-with-grep-in-a-for-loop/3967.html

why isn't this for loop working?? www.computing.net/answers/unix/why-isnt-this-for-loop-working/6915.html