Scripts/Filebreakout

From s23
Revision as of 04:34, 16 January 2005 by imported>mutante
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
find . -type f -ls|awk '
{
    fullpath=$11;
    sub(/.*?//,"",$11);
    basename=$11;
    cmd="file "fullpath;
    cmd|&getline ftype;
    print basename"
	Path: "fullpath"
	Owner: "$5"
	Size: "$7"
	Type: "ftype;
}'

http://bougyman.com/miscfiles/filebreakout.awk.html