thanks very much for the reply once again, but it seems the last code u gave is for reading from a file, and also there seems to be duplicate names in the list?
Im pretty new to grep and linux in general and I spent pretty much all day yesterday researching and coming up with a grep command to help with my university project. I am...