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
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: Use gp-runtime as a filter
- From: "Ruud H.G. van Tol" <rvtol@isolution.nl>
- Date: Thu, 23 Dec 2021 22:47:52 +0100
- Delivery-date: Thu, 23 Dec 2021 22:48:05 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=isolution.nl; s=soverin; t=1640296077; bh=AsDCKWizuDCmpn3YCA0QP8Gom2Bu96Wsg/YAkRnPIVI=; h=Date:Subject:To:References:From:In-Reply-To:From; b=T0AAbVhnGtypl/eYzYwhTnukgnRWsGdMSiG/PdP9odMnMRQrpI2hH2Q9LNl+haozq SVF+IC0Dbfc4zdwZb5DxYYpXzlYLoiaWosehma/mW6cxhXQv9OfWq4Naw7xkhTO80S kV8PlXg7HmR/bcL8BLURtRclWXOWyYBWg9LQmso3awKKrcSbbogKGMQ0F78WiyFKB8 uHxiscL/Zlq8CTeHuIEO7cCllq4TpPNV8TuQpw5l3jgHPQuMemw3E34Zjg/noRPLt9 qWv1CV3mkuzbCH97vII5T6y0ZcuzUyrJc6DTjHPyGoRXWn1EFKFeFTdWgSG2JCxJ2j KwHScA1bum/Eg==
- In-reply-to: <YcS+zS8BX1TSFPwj@seventeen>
- References: <c996ad0e-f536-83e5-58ee-651af2474ab8@isolution.nl> <YcS+zS8BX1TSFPwj@seventeen>
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; }