#!/usr/bin/env bash

old_ifs="$IFS"
IFS=$'\n'
cd ~/usr/bin

for i in $(find /opt/local/bin -maxdepth 1 \( -type f -o -type l \) -iname '*-2.7'); do
    loc=$(basename "$i" | sed -e 's/-2.7$//')
    if [ -L "$loc" ]; then
        continue
    fi
    ln -s "$i" "$loc"
done
