Skip to content

Instantly share code, notes, and snippets.

@danielecook
Created June 28, 2019 09:16
Show Gist options
  • Save danielecook/265c3b83c1324476a6028f1a4c961a11 to your computer and use it in GitHub Desktop.
Save danielecook/265c3b83c1324476a6028f1a4c961a11 to your computer and use it in GitHub Desktop.
Open a file from the command line in Excel #MacOS
function excel() {
tmp=`mktemp`
out=${1}
cat ${out} > $tmp
open -a "Microsoft Excel" $tmp
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment