Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need help with this script please

Need help with this script please

Need help with this script please

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" \; \)

This script fails in an AIX environment - looking for suggestions as how to make it run w/o errors in an AIX Environment.

Thanks in advance

RE: Need help with this script please

I think the easiest way is to install gnu find by: http://www.perzl.org/aix/index.php?n=Main.Findutil...
and probably also coreutils (to get md5sum you use too) http://www.perzl.org/aix/index.php?n=Main.Coreutil...

or same from IBM's AIX toolbox for linux builds or from:


update: I've checked your command on AIX with findutils/coreutils installed on and it works:

CODE -->

$ oslevel -s
$ rpm -qa|grep -e findut -e coreut
$ /opt/freeware/bin/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" \; \)
.       256     drwxr-xr-x      auser agroup    2016-06-29+11:02:14.0000        2016-06-29+11:01:52.0000        2016-06-29+11:01:52.0000

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close