Scripts/Filebreakout

From s23
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