I have a directory with a large number of files. I am attempting to search for text located in at least one of the files. The text is likely located in one of the more recent files. What is the command to do this? I thought it would look something like ls -t | head -5 | grep abaaba
.
For example, if I have 5 files returned from ls -t | head -5
:
- file1, file2, file3, file4, file5, I need to know which of those files contains abaaba
.