Example: Searching the string “function ” recursively, then passing the list to ls which sorts by time:
grep -lir 'function ' . | xargs ls -lart
Example: Searching the string “function ” recursively, then passing the list to ls which sorts by time:
grep -lir 'function ' . | xargs ls -lart