Usage: ./recent [--here | --stdin] [--heap | --sort] [--count n] In --here mode, os.walk() is used to traverse the CWD In --stdin mode, readline0() is used to obtain null-terminated filenames from stdin In either case, the n most recent files are listed in order from most recent to least recent By default, n is 10 With --heap a heap is used to get the n largest timestamps With --sort a big list and sort are used to get the n largest timestamps Note that --heap and --sort can produce different outputs sometimes, due to files with equal timestamps
What we're accomplishing  | 
            Command to accomplish it  | 
        
| Identify the 10 most recent files in the CWD and down | recent --here | 
| Identify the 5 most recent files in the CWD and down | recent --here --count 5 | 
| Identify the 10 most recent .py files in /tmp and down | find /tmp -name '*.py' -print0 | recent --stdin | 
You can e-mail the author with questions or comments: