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
I have txt with user1,user2,user3..etc (in lines). I want to run 'cat /etc/passwd | grep user. And get this output for each user in TXT file. Does it make sense ?