grep list each file once grep -l xyz file* where xyz is the search pattern , and file* is the list of files to be searched in