I would like to display a file's ctime, mtime and atime along with whether it has extended attributes or not. There are 2 commands that can do this but I have not been able to combine them into a single command to give a single line of output.
find /tmp -maxdepth 1 -printf "%a _ %c _ %t _ %P\n"
gives the output similar to this:
Thu Aug 27 09:51:11 2015 _ Thu Aug 27 09:48:40 2015 _ Thu Aug 27 09:48:40 2015 _ tempfile.tmp
and
ls -l /tmp
gives the output similar to this:
-rw-rw----+ 1 root root 5 Aug 27 04:39 tempfile.tmp
I'm interested only in the "+" symbol after the permissions in the ls output.
Ideally I'd like the output to be similar to this:
+ Thu Aug 27 09:51:11 2015 _ Thu Aug 27 09:48:40 2015 _ Thu Aug 27 09:48:40 2015 _ tempfile.tmp
Thu Aug 27 09:51:11 2015 _ Thu Aug 27 09:48:40 2015 _ Thu Aug 27 09:48:40 2015 _ anothertempfile.tmp