Results 1 to 2 of 2

Thread: Find Parameter Script Help Request

Threaded View

  1. #1

    Find Parameter Script Help Request

    I've written a script which will traverse a directory structure and generate directory listing of sorts with an md5sum. Here it is:

    It runs great on Red Hat:

    Code:
    find . -printf "%p\t%s\t%M\t%u\t%g\t%.24A+\t%.24T+\t%.24C+\t" -a \( -type d -exec echo \; -o  -type f -exec sh -c "md5sum {} | cut -d' ' -f1" \; \)
    here's one line of output:

    Code:
    ./abc/11.5.0/sql/abc13.sql           1607      -rwxr-xr-x            oraapp1               dba        2016-05-10+15:50:04       2002-10-25+16:00:57      2012-06-15+09:34:27     6714d4ba1f7ac762212b882ebdd46312
    but ... when I run on Suse Enterprise Server 9 (patch level 3) I get:

    Code:
    ./abc/11.5.0/sql/abc13.sql           1607      M            oraapp1               dba        A+.   T+.    C+.        6714d4ba1f7ac762212b882ebdd46312
    Anyone know how I can make the Suse line look like the RH line?

    Thanks
    Last edited by smflood; 16-Aug-2016 at 23:40. Reason: added code tags to make Web view easier to read

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •