aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-05-14 21:26:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-05-14 21:26:41 +1200
commite49350f9630c76aacd10e3dee060561d3adfa4ea (patch)
tree95c263aef07c847e76efad3bb33345c9d237e84b /games
parentAdopt cleaner approach for acq(6df) (diff)
downloaddotfiles-e49350f9630c76aacd10e3dee060561d3adfa4ea.tar.gz
dotfiles-e49350f9630c76aacd10e3dee060561d3adfa4ea.zip
Ignore blank lines
Diffstat (limited to 'games')
-rw-r--r--games/squ.awk3
1 files changed, 1 insertions, 2 deletions
diff --git a/games/squ.awk b/games/squ.awk
index 85b0bf09..7fdd1b96 100644
--- a/games/squ.awk
+++ b/games/squ.awk
@@ -1,7 +1,6 @@
# Make a reduced Latin square out of each line of input
-{
+len = length {
str = toupper($0)
- len = length(str)
for (i = 1; i <= len; i++)
let[i - 1] = substr(str, i, 1)
for (j in let)