A great way to clean up after you have exploded a tarball in the wrong place:
tar tf <file.tar.gz> | sort -r | while read file; do if [ -d "$file" ]; then rmdir "$file"; else rm -f "$file"; fi; done
A great way to clean up after you have exploded a tarball in the wrong place:
tar tf <file.tar.gz> | sort -r | while read file; do if [ -d "$file" ]; then rmdir "$file"; else rm -f "$file"; fi; done
Copyright © 2024, pynut.com. Proudly powered by WordPress. Blackoot design by Iceable Themes.