Create upper

This commit is contained in:
vx_clutch
2025-10-03 11:37:39 -04:00
committed by GitHub
parent 7a9c6e64c2
commit 541a2cb2b8

37
bin/.local/bin/upper Normal file
View File

@@ -0,0 +1,37 @@
#!/bin/sh
# Usage: prog | $0
prog_name=$(basename $0)
tool_version="1.0"
year=2025
print_help() {
cat <<EOF
Usage: $prog_name
--help print this help and exit.
--version print version information.
EOF
}
print_version() {
cat <<EOF
$prog_name $tool_version $(git rev-list --count --all 2>/dev/null || echo 0)
Copyright (C) $year vx-clutch.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
EOF
}
while [ $# -gt 0 ]; do
case "$1" in
--help) print_help; exit 0 ;;
--version) print_version; exit 0 ;;
*) ;;
esac
shift
done
read s
echo "$s" | tr '[:lower:]' '[:upper:]'