diff options
| author | DrNuget <drnuget@outlook.com> | 2025-11-13 06:06:19 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2025-11-13 06:06:19 +0200 |
| commit | 048a45fd11b8499eafff65c0a1dde9117f0dd892 (patch) | |
| tree | c0426e5b4df189ccf6f166fa963bdeb01d8915f9 | |
| parent | 63cd16597badab06e3847a781bdc47bc34f8eb60 (diff) | |
| download | scripts-048a45fd11b8499eafff65c0a1dde9117f0dd892.tar.gz | |
ROT script make ROT13 default
| -rwxr-xr-x | scripts/rot | 2 |
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, ","); |
