You can use the following tools to search and sort files.
Extended version of grep .
Searches files for literal words.
Searches the system for filenames.
Searches files for text patterns.
Faster version of find ; however, it depends on a database that is periodically updated by the weekly cron job in /etc/weekly . If the database is out of date, find is more accurate.
Sorts a file (use - n for numeric sorting, -u to eliminate duplicates).
Searches binary files for text patterns.
Reports or filters duplicate lines in a file.
Searches compressed files for text patterns.