I have a script that checks for duplicate entries of tape numbers on a server the output is sent to a file with the results looking like so:
123456 2
Showing that the tape has 2 entries (counted by uniq -c)
However I want to now display the servers that this tape came from.Therefore I need to read the tape number in as a variable so the script can then output:
123456 2 Server1 Server2
Hope ive explained what I want to do properly.
123456 2
Showing that the tape has 2 entries (counted by uniq -c)
However I want to now display the servers that this tape came from.Therefore I need to read the tape number in as a variable so the script can then output:
123456 2 Server1 Server2
Hope ive explained what I want to do properly.