Skip to content

Can you run gum filter with sh? #688

Closed Answered by dbohdan
dbohdan asked this question in Q&A
Discussion options

You must be logged in to vote

I could not find a way to make gum filter work in sh 1.14. However, after an upgrade to sh 2.0 the obvious solution (below) works. This is a clear improvement to sh.

import sh  # Not 1.x.
import sys
print(sh.gum("filter", _in="foo\nbar\nbaz\n", _err=sys.stderr))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dbohdan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #687 on July 17, 2023 09:03.