How do I  print file size, file name and modified date with header.Till now I have come up with:find . -regex '.*\.csv' -execdir stat --printf '%n,%y,%s' {} \;How to add header and do not print path rather only filename?egFile Name,Modified DateApple,2015-01-05 12:13
Print file name,Modified Date and Size with Header
bash;shell;centos;rhel
Try this with GNU find:echo File Name,Modified Date; find . -name '*.csv' -printf %f,%TY-%Tm-%Td %TI:%TM\n