Get last line of shell output as a variable
Put the tail inside the capturing parens. OUTPUT=$(exif … | tail -1) You don’t need the double quotes here. I’m guessing that you tried OUTPUT=”$(exif …) | tail -1″
Put the tail inside the capturing parens. OUTPUT=$(exif … | tail -1) You don’t need the double quotes here. I’m guessing that you tried OUTPUT=”$(exif …) | tail -1″