aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrNuget <drnuget@outlook.com>2025-11-13 06:06:19 +0200
committerDrNuget <drnuget@outlook.com>2025-11-13 06:06:19 +0200
commit048a45fd11b8499eafff65c0a1dde9117f0dd892 (patch)
treec0426e5b4df189ccf6f166fa963bdeb01d8915f9
parent63cd16597badab06e3847a781bdc47bc34f8eb60 (diff)
downloadscripts-048a45fd11b8499eafff65c0a1dde9117f0dd892.tar.gz
ROT script make ROT13 default
-rwxr-xr-xscripts/rot2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/rot b/scripts/rot
index 8deafb6..001cace 100755
--- a/scripts/rot
+++ b/scripts/rot
@@ -17,6 +17,8 @@ while [[ $# -gt 0 ]]; do
esac
done
+[ -z "$ROT" ] && { ROT="13"; }
+
echo "$DATA" | awk -vrot=$ROT -valph=$(echo -n {A..Z} , {a..z} | tr -d ' ') '
BEGIN {
split(alph, alph_arr, ",");