diff options
| -rw-r--r-- | challenge-097/abigail/awk/ch-1.awk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/challenge-097/abigail/awk/ch-1.awk b/challenge-097/abigail/awk/ch-1.awk index a33507ee33..c93f4a123e 100644 --- a/challenge-097/abigail/awk/ch-1.awk +++ b/challenge-097/abigail/awk/ch-1.awk @@ -32,13 +32,12 @@ BEGIN { } { - split($0, letters, "") out = "" # # Iterate over the individual letters, shifting capital letters # for (i = 1; i <= length (letters); i ++) { - char = letters [i] + char = substr ($0, i, 1) if (ord [char]) { n = ord [char] - shift if (n < ORD_A) { |
