Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

diegoborgh

macrumors newbie
Original poster
Apr 14, 2007
1
0
Hi,

I need desperately a script that can take some file attributes from a folder and write them down in a txt file.
Basically I need the name.extension, byte size and timestamp, tab delimited.
How can I do this?

Thanks!
 
Hi,

I need desperately a script that can take some file attributes from a folder and write them down in a txt file.
Basically I need the name.extension, byte size and timestamp, tab delimited.
How can I do this?

Thanks!

In Terminal, you can run:
ls -l folderofinterest > txtfile
Where folderofinterest is the folder but will list all the files within it. If you just want the directory itself, use "-d". txtfile is the name of the file you want to send the information to. You can run it on a commandline/terminal without the "> txtfile" part to see if meets your needs.

Do a man on ls for more information.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.