- If vim paste is messed up, then do
:set paste
Get the output of grep --color=auto -ril "keyword" .
and sort it according to modify date.
find . -type f -exec grep -q keyword {} \; -printf '%T@/%p\0' | sort -zn | while IFS=/ read -rd '' tsamp file; do printf 'timestamp: %s, file: %s\n' "$tsamp" "$file"; done