BASH Tip: Alternative to expr for arithmetic

I discovered recently a neat way to do arithmetic in BASH without the need to use the expr command. There's a build-in that uses the syntax $((…)) or $[ … ]. This is also faster as it avoids the need to invoke a separate command. See: http://snap.nlc.dcccd.edu for…

BASH: Open FileMerge from CLI

Here's a quick tip. If you want to open FileMerge (Apples graphical diff utility available in developer tools) from the CLI you can use the command opendiff e.g: opendiff file1 file2 This save lots of hassle when you are trying to resolve versioning conflicts, as I always…