I want to retrieve all the .log files from the directory /var/log, store the results in a csv file along with each log file's respective file size in kB.
I started by getting the files using find:
find . -type f -name "*.log"
how to save them in the file?
find
? – Satō Katsura Jul 19 '16 at 14:21-printf
which may be useful – ilkkachu Jul 19 '16 at 14:24