+ 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
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes