I am trying to write a script that will facilitate cataloguing various files on a backup medium. Looking at what's available, only stat seems suitable but it outputs the data with a lot of formatting I don't require and would take a lot of scripting to massage into what I want. ls -l at the CLI would result in a lot of scripting as well.
There are four pieces of information I need and would like them somehow delimited for easy import to a spreadsheet. In order they are:
File creation date and time to the minute
Label of the medium (DVD name)
I had developed a way to do this in Windows using JPSoft and found it a lot simpler than what it will take in bash.
Is there something other than stat and ls?
Edited by dwlamb: Fix typos