请问 Mac 可以使用shell用 Excel 打开文件吗

如题

题主日常使用 sublime text, 命令行打开文件/文件夹十分便捷。
今天需要打开 .csv 文件,想到是否可以使用 shell 快捷打开 excel?

注:曾在 .bash_profile 中写过 - chrome [site] 快捷使用 Chrome 浏览器:

function chrome(){
    local site=""
    if [[ -f "$(pwd)/$1" ]]; then
        site="$(pwd)/$1"
    elif [[ "$1" =~ "^http" ]]; then
        site="$1"
    else
        site="http://$1"
    fi
    /usr/bin/open -a "/Applications/Google Chrome.app" "$site";
}

望解答~

阅读 7.4k
3 个回答

open 就完了啊,对应的应用是系统管理的。

open xxx.csv

open -a "Google Chrome" test.csv

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题