鍍金池/ 問答/iOS  Linux  網(wǎng)絡(luò)安全/ 請(qǐng)問 Mac 可以使用shell用 Excel 打開文件嗎

請(qǐng)問 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";
}

望解答~

回答
編輯回答
糖豆豆

open -a "Google Chrome" test.csv

2018年2月3日 16:34
編輯回答
離觴

open 就完了啊,對(duì)應(yīng)的應(yīng)用是系統(tǒng)管理的。

open xxx.csv
2017年9月14日 09:35
編輯回答
尐飯團(tuán)

可以啊,為什么不行

2017年3月20日 04:27