Open main menu

Scripts/Filebreakout

Revision as of 08:32, 14 February 2005 by imported>mutante
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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