Skip to content

Instantly share code, notes, and snippets.

@pjobson
Created August 25, 2020 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjobson/bf74fc83ff1b041ba3993950762f345d to your computer and use it in GitHub Desktop.
Save pjobson/bf74fc83ff1b041ba3993950762f345d to your computer and use it in GitHub Desktop.
Script for Finding a File and Opening with Sublime
#!/bin/bash
INPUT=$1
IFS=":"
read -ra FILE <<< "$INPUT"
FIND=`/usr/bin/find . -name ${FILE[0]}`
LINE=${FILE[1]}
`/usr/bin/subl ${FIND}:${LINE}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment