I want to search the following by grep + show the seven most recently modified files. I can list those files by ls -1t  | head -n 7. Code which order alphabetically as defaultgrep -i root *.texOS: Debian 8.7    
How to grep + show only the 7 most recently modified files?
debian;grep;wildcards
Use zsh:grep -i -- root *.tex(.om[1,7])(.om[1,7]): glob qualifier.: regular files onlyom: order by last modification time (youngest first like in ls -t)[1,7] only first to seventh ones.If you also want to consider symlinks to tex files (and consider the mtime of the file at the end of the symlink chain), add a - glob qualifier before the . which tells zsh that the following glob qualifiers apply to the target of the symlinks. If you also want to consider hidden tex files, add the D glob qualifier.