Monthly Archives: July 2018

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

Posted in Uncategorized | Leave a comment