in reply to Save permissions on a directory tree

jcpunk--

Assuming you're on a *nix box, I'd second revdiablo's suggestion to use standard utilities, specifically:
find . -fprintf the_file_name "%p %m %u:%g\n"
--roboticus

Replies are listed 'Best First'.
Re^2: Save permissions on a directory tree
by revdiablo (Prior) on Mar 16, 2006 at 17:30 UTC
    Assuming you're on a *nix box, I'd second revdiablo's suggestion

    Funnily enough, my suggestion does not really require a unix machine. Most of the good utilities have been ported to many other operating systems. Consider the following from my local Win32 box:

    U:\>find . -printf "%m %u:%g %p\n" | tail 777 ctilden:Domain Users ./SRID 644 ctilden:Domain Users ./trans.csv 755 ctilden:Domain Users ./WINDOWS 644 ctilden:Domain Users ./WINDOWS/ArtGalry.Cag 755 ctilden:Domain Users ./WINDOWS/system 644 ctilden:Domain Users ./WINDOWS/win.ini 644 ctilden:Domain Users ./winscp.RND 777 ctilden:Domain Users ./work 644 ctilden:Domain Users ./zeros.pl 644 ctilden:Domain Users ./_viminfo

    Update: This post is meant to be general in nature, with debates about the usefulness of this to the original topic notwithstanding. =)