I have to construct a csv with the output of a shell command; the csv file must contain for each row some information get by the output of stat command and in the last column the md5sum (only the sum without the filename)
I tried some command like:
find . -exec stat --printf='"%a";"%F"' {} \; -exec sh -c "md5sum $1 | cut -b-32" {} {} \;
but this block and ask me for input
and this,
find . -exec stat --printf='"%a";"%F";' {} \; -exec md5sum {} | cut -b-32 \;
but in this case the pipe doesn't work.
How can I solve it?