I would like to use the finger command to loop through a text file that I have created line by line until the end of all users on a unix server and then output the results of the finger to another file.
Assume that the userfile.txt has one user per line: #!/bin/ksh while read user do finger $user >> output.txt done < userfile.txt
