Skip to content

Comment on Ask HN: Tool for Mac, create database from filesystem

Comments

You could try using find(1) to display the results and use that to capture the results, and then use cut(1), sed(1), or awk(1) to convert that to a CSV that could be loaded into your database of choice:

    find . -print -ls | awk ... > /tmp/foo.txt 
Not sure if that gives you what you want, but it's a relatively fast way to get to what you want, I think.

For starters, I want all the output from stat()

Additionally for images, I would include the EXIF information

It would all go into a relational DB so it can be queried with SQL

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.