Ruud H.G. van Tol on Thu, 23 Dec 2021 22:48:05 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Use gp-runtime as a filter



On 2021-12-23 19:24, Bill Allombert wrote:
On Thu, Dec 23, 2021 at 10:39:38AM +0100, Ruud H.G. van Tol wrote:

I'm very used to using CL-tools as filter,
reading from stdin and writing to stdout.

Is that easy to achieve with the current gp?
[...]

You can use 'gp -q -f -D output=0'

Thanks!

$ alias gp0='gp -q -f -D output=0'

$ echo 'print("test")' |gp0
test

-- Greetings, Ruud

Alternative:

$ function gp0() { gp -q -f -D output=0; }