Thursday, 24 November 2022

How to tar each folder separately in ubuntu?

 for i in */; do tar -czvf "${i%/}.tar.gz" "$i"; done

No comments:

Post a Comment