lanceomni
01-16-2009, 09:28 PM
I am looking to build a spreadsheet with information on kext files. I want to include file name, file size in bytes, version & build.
I found the following code to give me filename, date, size in a CSV (Well actually they use a ; but it worked fine)
My problem is that since a kext is actually a folder the sizes listed do not reflect the contents. It displays the size of the folder empty.
ls -lT | \
awk '{print "\""$10"\""";""\""$6" "$7", "$9"\""";""\""$5"\""}' \
| pbcopy
Id like to get a list of the size including contents as I would get by right-clicking the kext and choosing Get Info.
I would also be interested in displaying the Version & Build numbers. I can use kextstat to display this information but only for those currently on my machine.
I found the following code to give me filename, date, size in a CSV (Well actually they use a ; but it worked fine)
My problem is that since a kext is actually a folder the sizes listed do not reflect the contents. It displays the size of the folder empty.
ls -lT | \
awk '{print "\""$10"\""";""\""$6" "$7", "$9"\""";""\""$5"\""}' \
| pbcopy
Id like to get a list of the size including contents as I would get by right-clicking the kext and choosing Get Info.
I would also be interested in displaying the Version & Build numbers. I can use kextstat to display this information but only for those currently on my machine.