aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-13 16:07:28 +0000
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-13 16:07:28 +0000
commit5000a23e1f31c2d55132d1ee29c0bc303a2047c7 (patch)
tree5b906aebc580ddaa19b40a8b58227249c5cd52f1
parent1937dbfec2d18a40875397ec70bb9bfef2f37208 (diff)
now properly uses the -i flag
-rwxr-xr-xgrepjournal2
1 files changed, 1 insertions, 1 deletions
diff --git a/grepjournal b/grepjournal
index 9c929fe..7b66262 100755
--- a/grepjournal
+++ b/grepjournal
@@ -61,8 +61,8 @@ while IFS= read -r line; do
fi
if [[ $out_line =~ $searchterm ]]; then
out_line=${out_line/$searchterm/"${colourOrange}${txBold}$searchterm${txReset}"}
- echo -e "$out_line" >> "$output_file"
fi
+ echo -e "$out_line" >> "$output_file"
done < "$grepped_results"
# output