Append grep results to avoid overwriting header

Currently, if "keep_header" is true, the header is copied to the output file, but is then overwritten by the grep results.
This commit is contained in:
jancrichter
2022-08-18 17:49:04 +02:00
committed by mvdbeek
parent da72674d42
commit 7b10be9cb8
+1 -1
View File
@@ -17,7 +17,7 @@
#else
cat '$input'
#end if
| grep -P -f '$pattern_file' $invert > '$out_file1'
| grep -P -f '$pattern_file' $invert >> '$out_file1'
]]></command>
<configfiles>
<configfile name="pattern_file">$pattern</configfile>