[Gllug] parsing command output

Mark Williams mark.666 at blueyonder.co.uk
Wed Feb 14 18:35:40 UTC 2007


On Wednesday 14 Feb 2007 17:36, Gavin White wrote:
>In large print, for those of us who can't do shorthand,
>$CMD 2>&1 |strings |head -8 |tail -2  |tr -s " " ","  |cut -d"," -f 5

Feeding the original test string into this gives:
tail: cannot open ` ' for reading: No such file or directory
tr: too many arguments
Try `tr --help' for more information.

because strings chops lines at spaces.
Sorry Gavin!

Mark

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list