+ 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 {} \;

4th Aug 2022, 5:53 AM
Md. Asiful Hoque Prodhan
Md. Asiful Hoque Prodhan - avatar
1 Réponse
0
In python ?
1st Sep 2022, 5:18 AM
RISHABH
RISHABH - avatar