Sorry I think I formulated my question really badly.. I have txt file with about 1000 lines with user names. What I want is to run this command against each user in txt file:
cat /etc/passwd | grep user
and get output on a screen or to another txt file