How I like to code

Tag Archives: Bash

A quick word on modern BASH

Here’s a page that has some useful tips for modern BASH scripting: http://www.davidpashley.com/articles/writing-robust-shell-scripts/

OmniGraffle supports UNIX keyboard commands

Well, at least ctrl+a and ctrl+e. I haven’t tried anything else, but I was surprised to find out that these even work within OmniGraffle.

Shell script to get path of application in MacOS

Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript: ?View Code BASH#!/bin/sh   result=`exec osascript <<EOF tell application "Finder" set thePath to (POSIX path of (path to application "Doxygen")) end tell EOF`   echo $result

Passing parameters to shell scripts

I recently fell in love with TextMate. For me, programming 24/7, TextMate helps me edit files that would normally be a pain with the standard editors on the market. Now, with that being said, I started making a lot of Bash shell scripts to automate building projects with Xcode and delivering the binaries for testing. […]

Using DTerm and the shell to rename files

I download files from my bank that have some really long name to them and at the end of the name, is the date. The date is not formatted, of course, and I wanted to rename the files easily, without manually parsing out the string. Now on my computer, I have DTerm and TextMate at […]