Listing File, path, sizes and dates
Case: I have 6 machines on one network (some with 2 drives), another on another network (connected by vpn) and 3 external drives.
These all have accumulated stuff, some repeated as I've upgraded and re-purposed machines but left directories behind as a safeguard.
I need to rationalise the space and develop a more systematic approach to backup and archiving.
My first step is do an inventory of what's where and my natural approach is work with a data base of file name, path, size, created date and last modified to allow me to do some maths on archiving to dvd.
Using find as follows
find [Start Somewhere Directory] -print > [workspace path]/TestOutput.txt
gives me a nice list of file name I can parse out in a database
But I don't get size and dates.
Adding -ls produces that info but creates header lines for parent directories and adds permissions, node and other info I don't need.
I got to here
find [Start Somewhere Directory] -type df -exec ls -lshk {} \; -print > [workspace path]/TestOutput.txt
but still has the hierarchical output rather than flat paths.
Am I doing this all the hard way ? Is there a tool that returns just what I'm looking for ?
Or what command will allow me to take just the relevant columns form ls to the print parameter ?
Or can I extend find to add the size and date info to the output ?
Kind Regards
Eric
G5 at last :-), Mac OS X (10.4.6)