Ray Van Dolson's Blog

Pontifications from smoggy Southern California

Archive for July 2009

Tricks with find

leave a comment »

I was attempting to find the newest C file in a tree of files I’d checked out from CVS. find to the rescue:

$ find . -name '*.c' -printf '%-50p %-15T@ %T+\n' | sort -k2
./ssl/main.c                                       1039831674      2002-12-13+18:07:54
./ssl/lex.yy.c                                     1039831674      2002-12-13+18:07:54
./ssl/ssl_enum.c                                   1039831678      2002-12-13+18:07:58
./ssl/y.tab.c                                      1039831683      2002-12-13+18:08:03
./common/lib/debug.c                               1039831686      2002-12-13+18:08:06
./common/lib/r_list.c                              1039831689      2002-12-13+18:08:09
./common/lib/r_time.c                              1039831689      2002-12-13+18:08:09
./common/lib/r_errors.c                            1039831689      2002-12-13+18:08:09
./common/lib/r_replace.c                           1039831689      2002-12-13+18:08:09
./common/lib/r_assoc_test.c                        1039831689      2002-12-13+18:08:09
./common/lib/threads/pthreads/pthread.c            1039831690      2002-12-13+18:08:10
./base/debug.c                                     1039831693      2002-12-13+18:08:13
./base/common.c                                    1039831693      2002-12-13+18:08:13
./base/proto_mod.c                                 1039831694      2002-12-13+18:08:14
./base/print_utils.c                               1039831694      2002-12-13+18:08:14
./base/tcpconn.c                                   1041533083      2003-01-02+10:44:43
./null/null_analyze.c                              1041533086      2003-01-02+10:44:46
./ssl/ssl_analyze.c                                1041533087      2003-01-02+10:44:47
./ssl/ciphersuites.c                               1051291844      2003-04-25+10:30:44
./ssl/ssl_rec.c                                    1051291846      2003-04-25+10:30:46
./common/lib/r_data.c                              1166728933      2006-12-21+11:22:13
./common/lib/r_assoc.c                             1166728933      2006-12-21+11:22:13
./common/lib/r_bitfield.c                          1166728933      2006-12-21+11:22:13
./ssl/sslprint.c                                   1166728991      2006-12-21+11:23:11
./ssl/ssl.enums.c                                  1166728991      2006-12-21+11:23:11
./ssl/sslxprint.c                                  1166728991      2006-12-21+11:23:11
./base/network.c                                   1166729027      2006-12-21+11:23:47
./base/tcppack.c                                   1166729027      2006-12-21+11:23:47
./base/pcap-snoop.c                                1166729027      2006-12-21+11:23:47
./ssl/ssldecode.c                                  1247069555      2009-07-08+09:12:35

Written by rayvd

July 8, 2009 at 8:35 pm

Posted in Systems Administration, Technology

Tagged with ,