grep string recursively and sort output files chronologically

Example: Searching the string “function ” recursively, then passing the list to ls which sorts by time:

grep -lir 'function ' . | xargs ls -lart
This entry was posted in Uncategorized. Bookmark the permalink.