This commit is contained in:
Jamie Cameron
2017-07-18 18:16:54 -07:00
parent fe8c1bef03
commit b1ca319cc2

View File

@@ -95,6 +95,9 @@ elsif ($in{'view'}) {
@cats = ( "cat ".quotemeta($file) );
}
$cat = "(".join(" ; ", @cats).")";
if ($config{'reverse'}) {
$tailcmd .= " | tac";
}
$got = &proc::safe_process_exec(
"$cat | grep -i -a $filter | $tailcmd",
0, 0, STDOUT, undef, 1, 0, undef, 1);