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
$
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
