fizwit / filesystem-reporting-tools

Tools to help system administors manage very large file systems. pwalk
GNU General Public License v2.0
22 stars 12 forks source link

add a header switch #16

Closed bmcgough closed 6 years ago

bmcgough commented 6 years ago

Many tools for CSV analysis can construct a schema when a header row is present at the beginning of the output.

A command line switch to print a single line at the beginning of pwalk output naming the fields would be useful. Of course, some would not want that, do the default should be to not print.

I would suggest sticking to the stat struct names for stat struct data (ex: st_size, st_mtime) to avoid possible confusion.

fizwit commented 6 years ago

--header flag is implemented