I want to produce a list of files in a directory and feed it into a script to generate database entries including their creation dates. The database is Solr, so I need to be able to translate ISO 8601
yyyy-mm-ddThh:mm:ssZ format (although I don't really care if the timezone is off, it's a bit quick and dirty).
ls appears to be the obvious choice, but doesn't print the year in the creation date. And the format is weird. And it doesn't seem that I can just choose the columns I want, which is annoying.
What other tool might be more friendly to simple text processing a la Awk?