Why Does BASH Differ Across Different Platforms?
Using the BASH shell in OS X I wanted to examine the EXIF data of my JPG files for a script I am writing. Unfortunately, the exif command in BASH does not work, despite there being a man page for it. I’m solving this problem by using ExifTool by Phil Harvey, but it leaves me asking the question “Why does the BASH exif command work with Linux but not with OS X?” I had a similar problem using the uniq command that works fine with Linux but only partially with OS X:
uniq -w 32
That is because in OS X there is no -w flag. Most of the scripts and examples I find to learn from are written in BASH with Linux and I’m having a really hard time understanding why BASH is not the same with OS X. It makes no sense.
Anyone?
UPDATE 10/07/08
In fact, you don’t get exif on Linux so what am I talking about (and there isn’t even a man page for it like on OS X). Use exiv2 or exiftool. Still confusing why it’s there in OS X though..