When getting an image's pixelWidth using SIPS it outputs with a heading. e.g.
sips -g pixelWidth $images
returns
" pixelWidth: 1920"
I'm trying to get the integer part only, with no luck:
sips -g pixelWidth $images | grep \d+$
Any Ideas?