From 200561b0e707086d21cca7ba33da535aaf150ec1 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 1 Oct 2015 17:41:28 -0700 Subject: [PATCH] fix get_cols.awk indentation --- dotfiles/lib/get_cols.awk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dotfiles/lib/get_cols.awk b/dotfiles/lib/get_cols.awk index 15eab57f..4a26c5c0 100644 --- a/dotfiles/lib/get_cols.awk +++ b/dotfiles/lib/get_cols.awk @@ -3,13 +3,13 @@ BEGIN{ column_count=split(cols,column_numbers," "); } { - for(i=1; i<=column_count; i++) - if(column_numbers[i] < 0) - printf "%s", $(NF + 1 + column_numbers[i]) - else - printf "%s", $column_numbers[i] - if(i <= column_count) - printf "%s", OFS + for(i=1; i<=column_count; i++) + if(column_numbers[i] < 0) + printf "%s", $(NF + 1 + column_numbers[i]) + else + printf "%s", $column_numbers[i] + if(i <= column_count) + printf "%s", OFS - printf "%s", ORS - } + printf "%s", ORS + }