[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [groff] pdfpic.tmac
From: |
Heinz-Jürgen Oertel |
Subject: |
Re: [groff] pdfpic.tmac |
Date: |
Thu, 23 Aug 2018 11:52:17 +0200 |
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