git-svn-id: http://code.autistici.org/svn/backupninja/trunk@308
758a04ac-41e6-0310-8a23-
8373a73cc35d
-# fruit = apple
-# fruit = pear
-# multiline = this is a multiline \
-# parameter
+# fruit = apple
+# fruit = pear
+# multiline = this is a multiline \
+# parameter
+# # 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
-# > awk -f parseini S=ocean P=fish testfile.ini
+# > awk -f parseini S=ocean P=fish testfile.ini
for (x = 0; x < nline; ++x) {
sub(/^[ \r\t]+/, "", line[x])
sub(/[ \r\t]+$/, "", line[x])
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)
# output the final result
for (x = 0; x < nline; ++x)