diff options
author | Elijah Saxon <elijah@riseup.net> | 2006-01-09 00:20:48 +0000 |
---|---|---|
committer | Elijah Saxon <elijah@riseup.net> | 2006-01-09 00:20:48 +0000 |
commit | ca36fe1456ead83d07fafda7225490ebabe15c14 (patch) | |
tree | b9aead1ae800b20482af4c99df8a9be1ab79f098 /lib/parseini.in | |
parent | 18052afed3b527594023be97cc4b903747392a8a (diff) | |
download | backupninja-ca36fe1456ead83d07fafda7225490ebabe15c14.tar.gz backupninja-ca36fe1456ead83d07fafda7225490ebabe15c14.tar.bz2 |
fixed indenting
Diffstat (limited to 'lib/parseini.in')
-rw-r--r-- | lib/parseini.in | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/lib/parseini.in b/lib/parseini.in index 6f56d42..b9dfd01 100644 --- a/lib/parseini.in +++ b/lib/parseini.in @@ -8,27 +8,26 @@ # # example ini file: # -# fruit = apple -# fruit = pear -# multiline = this is a multiline \ -# parameter +# fruit = apple +# fruit = pear +# multiline = this is a multiline \ +# parameter # -# # this is a comment +# # this is a comment +# [colors] +# red = yes +# green = no +# blue = maybe # -# [colors] -# red = yes -# green = no -# blue = maybe -# -# [ocean] -# fish = red -# fish = blue +# [ocean] +# fish = red +# fish = blue # # example usage: -# > awk -f parseini S=ocean P=fish testfile.ini +# > awk -f parseini S=ocean P=fish testfile.ini # would return: -# red -# blue +# red +# blue # BEGIN { @@ -119,7 +118,7 @@ END { for (x = 0; x < nline; ++x) { sub(/^[ \r\t]+/, "", line[x]) sub(/[ \r\t]+$/, "", line[x]) - } + } # output the final result for (x = 0; x < nline; ++x) |