From 75a404fbac4acd74038a72bdfb9e4260340e2c51 Mon Sep 17 00:00:00 2001 From: "Paul \"Joey\" Clark" Date: Wed, 31 May 2023 15:23:24 +0800 Subject: [PATCH] Remove misleading gz extension The `--delete` option does not work on compressed archives, so the example should not show a compressed archive! --- sheets/tar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheets/tar b/sheets/tar index 1b3b568..a225f73 100644 --- a/sheets/tar +++ b/sheets/tar @@ -13,7 +13,7 @@ tar -czvpf "$(printf '/media/%s/%s/%d:%d_%(%F)T.tgz' "$USER" 'DEVICE' ${UID:-`id # Delete file 'xdm' from the archive given to the `-f` flag. This only works on # non-compressed archives, unfortunately, but those can always be uncompressed # first, then altered with the `--delete` flag, after which you can recompress. -tar --delete -f xdm_edited.tar.gz xdm +tar --delete -f xdm_edited.tar xdm # Extract the contents of the given archive (which is not compressed) to the # destination given to the `-C` flag; not many seem to know of this flag.