Added compress, convertUTF8 and extract scripts

This commit is contained in:
saundersp
2024-11-07 22:24:20 +01:00
parent e2fd902f09
commit d6f7936525
3 changed files with 36 additions and 0 deletions

12
compress Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
if [ -z "$1" ] || [ "$1" = '-h' ] || [ "$1" = '--help' ] || [ "$1" = 'help' ]; then
FILENAME=$(basename "$0")
printf "$FILENAME : tool to easily compress to tar.gz archives.
Created by Pierre Saunders @saundersp 2021\n\nUsage:
\t$FILENAME archive.tar.gz file1.txt file2.txt
\tCompress file1.txt and file2.txt content in the archive.tar.gz where the command is executed.
\n\t$FILENAME\n\t$FILENAME help\n\t$FILENAME --help\n\t$FILENAME -h\n\tDisplay this usage message.\n"
else
tar -czvf "$@"
fi