Scripts/Filebreakout
From S23Wiki
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
Categories: Unix | Computer | Scripts

