Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のように機能するエイリアスを作成したいと思い vf hello.cます。find コマンドを実行して hello.c を検索し、vim エディターで開きます。
vf hello.c
それを行う最良の方法は何ですか?私は次のことを試しました(動作しません):
alias vf "find -name $* -exec vi {} \;"
alias vf "vi `find -name $*`"
誰でも助けることができますか?
試行錯誤の末に答えを見つけました:
使用するalias vf "find -name \!:1 -exec vi {} \;"
alias vf "find -name \!:1 -exec vi {} \;"