diff --git a/files/bin/pcat b/files/bin/pcat index 6347de7..36b07f4 100755 --- a/files/bin/pcat +++ b/files/bin/pcat @@ -149,6 +149,12 @@ if [ -n "${FROM:-}${UNTIL:-}" ]; then [ -z "${FROM:-}" ] || PIPELINE="$PIPELINE -e '0,/$FROM/d'" [ -z "${UNTIL:-}" ] || PIPELINE="$PIPELINE -e '/$UNTIL/,\$d'" + + # no grep? combine both sed calls + if [ -z "${GREP_ARGS:-}" -a -n "${SED_ARGS:-}" ]; then + PIPELINE="$PIPELINE $SED_ARGS" + SED_ARGS= + fi fi # GREP FILTER