find ./data -type f -exec file {} \; | tee files.txt sed -i 's/:/,/g' files.txt mv files.txt files.csv