Difference between revisions of "Scripts/Filebreakout"

From s23
Jump to navigation Jump to search
imported>mutante
m
 
imported>mutante
m
 
Line 16: Line 16:
  
 
http://bougyman.com/miscfiles/filebreakout.awk.html
 
http://bougyman.com/miscfiles/filebreakout.awk.html
 +
 +
[[Category:Unix]]
 +
[[Category:Computer]]
 +
[[Category:Scripts]]

Latest revision as of 08:32, 14 February 2005

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