diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-05 00:39:58 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-05 00:39:58 +1200 |
commit | 51895429ae6dd426eb507c51f2ce6b6a7c2ea2b2 (patch) | |
tree | cdbe5015c52399646bf35d639f2e3be80b3f78ee /bin/mftl.awk | |
parent | Exclude $0 from arg iteration in mftl(1df) (diff) | |
download | dotfiles-51895429ae6dd426eb507c51f2ce6b6a7c2ea2b2.tar.gz dotfiles-51895429ae6dd426eb507c51f2ce6b6a7c2ea2b2.zip |
Prettify an Awk for a bit
Diffstat (limited to 'bin/mftl.awk')
-rw-r--r-- | bin/mftl.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mftl.awk b/bin/mftl.awk index 67087520..ee6ff022 100644 --- a/bin/mftl.awk +++ b/bin/mftl.awk @@ -26,7 +26,7 @@ BEGIN { # Iterate through the targets that don't look like substitutions or # inference rules and stack them up into an array's keys to keep them # unique; this probably needs refinement - for (i=1; i<NF; i++) + for (i = 1; i < NF; i++) if ($i ~ /^[a-zA-Z0-9][a-zA-Z0-9./_-]*$/) ats[$i] } |