I just want to find the server names that belong to one list but doesnt belong to another. Just the server names in output.
1>Try searching in the forum for this frequently asked question
2>If not, display your sample file so that a best solution can be provided. If its just a single column of servers, first sort both the files and use comm command.
Both the files cotain just a single column of servers
Ok, if you want to display those in file1 and not in file2 follow the below steps
1>sort both the files using the sort command
2>using comm command on sorted files
comm -2 -3 file1 file2