The final output I wanted was a list of machine names line by line, i.e. you open the file to see this:

machine1
machine2
machine3
machine4

and so on. I want to ensure that machine names are appended to this list each time the login script runs. I also want to avoid duplicates in the list.

Thanks again. Greg