From 2d28b4d649036922653c33c18fe75e61affa40ee Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 20 Sep 2022 21:28:30 +0000 Subject: [PATCH] style(user/bksum):Rename bksumsign.sh to bksum --- user/{bksumsign.sh => bksum} | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) rename user/{bksumsign.sh => bksum} (98%) diff --git a/user/bksumsign.sh b/user/bksum similarity index 98% rename from user/bksumsign.sh rename to user/bksum index de17450..08b6c81 100755 --- a/user/bksumsign.sh +++ b/user/bksum @@ -1,5 +1,6 @@ #!/usr/bin/env bash # Desc: Create and sign a checksum +# Usage: bksum file.txt # Input: stdin: file list (newline delimited) # arg(s): file paths (IFS delimited) # Output: file containing sha256 hashes and file paths @@ -42,7 +43,7 @@ showUsage() { # Depends: GNU-coreutils 8.30 (cat) cat <<'EOF' USAGE: - bksumsign.sh [ options ] [FILE...] + bksum [ options ] [FILE...] DESCRIPTION: Creates sha256 checksum of files. @@ -68,12 +69,12 @@ showUsage() { Indicate end of options. EXAMPLE: - bksumsign.sh file.txt - bksumsign.sh file1.txt file2.txt - bksumsign.sh -v -- file1.txt file2.txt - bksumsign.sh -v -t -- file1.txt file2.txt - find . -type f | bksumsign.sh - find . -type f | bksumsign.sh -v -s -t -- file.txt + bksum file.txt + bksum file1.txt file2.txt + bksum -v -- file1.txt file2.txt + bksum -v -t -- file1.txt file2.txt + find . -type f | bksum + find . -type f | bksum -v -s -t -- file.txt NOTE: If GNU Coreutils 8.32 `sha256sum` used, checksum file @@ -93,7 +94,7 @@ showVersion() { vbm "DEBUG:showVersion function called." cat <<'EOF' -bksumsign 0.0.1 +bksum 0.0.1 Copyright (C) 2022 Steven Baltakatei Sandoval License GPLv3: GNU GPL version 3 This is free software; you are free to change and redistribute it. -- 2.30.2