src/AwkHandler.h
branchv_0
changeset 15 ba91a464d2b3
parent 13 b74001992ec3
child 17 54716ea44d52
--- a/src/AwkHandler.h	Tue May 07 01:03:21 2019 +0200
+++ b/src/AwkHandler.h	Tue May 07 16:37:37 2019 +0200
@@ -192,13 +192,16 @@
 				std::wstringstream awkScript;
 				awkScript << L"BEGIN {" << std::endl;
 				awkScript << L"FS=\"\\t\";" << std::endl;
+				awkScript << currentRelationConfiguration->awkBeforeRecords << std::endl;
 				awkScript << L"};" << std::endl;
+				awkScript << std::endl;
 
 				awkScript << L"END {" << std::endl;
-				// awkScript << … << std::endl;
+				awkScript << currentRelationConfiguration->awkAfterRecords << std::endl;
 				awkScript << L"};" << std::endl;
+				awkScript << std::endl;
 
-				awkScript << L"{print \"AWK says: line \" NR \" '\" $0 \"' has \" NF \" fields; first field is '\" $1 \"'\";}" << std::endl;
+				awkScript << currentRelationConfiguration->awkForEach << std::endl;
 
 				// CLI arguments:
 				std::vector<std::string> args;