Linux Command line: recursively overwriting every file with a gzipped version

command linegziplinux

______________ myFolder

What can I replace with _____________ to recursively gzip every file starting at myFolder and have the gzip be overwrite the file (rename the gzip file to the original filename)?

Best Answer

You could also try

 find myFolder -type f -exec gzip {} \; -exec mv {}.gz {} \;
Related Question