Am Mittwoch, 22. August 2018, 19:21:19 CEST schrieb Ralph Corderoy: > Hi Heinz, > > > What I did, is adding --text to grep > > > > .sy pdfinfo @$1 | grep --text "Page *size" | .. > > `tr -d \\0' deletes ASCII NUL bytes, e.g. > > $ printf 'foo\0bar\n' | wc > 1 1 8 > $ printf 'foo\0bar\n' | tr -d \\0 | wc > 1 1 7 > $
but this would be an additional step/process in the pipe Heinz