+ 1
I want to tar a folder and remove it. How to do it if I want to tar only specific extension file?
find . -type f -mtime +10 | xargs tar -cvf tarFilename.tar {} \; find . -type f -mtime +10 -exec rm {} \;
1 Respuesta
0
In python ?
find . -type f -mtime +10 | xargs tar -cvf tarFilename.tar {} \; find . -type f -mtime +10 -exec rm {} \;