如何执行我刚刚在zsh中打印的特定行?

时间:2015-08-23 15:00:49

标签: macos shell zsh

说我用mdfind搜索了一些文件的路径。现在我打印了几个地址,我想要做的是进入第一个地址。是否有任何方式编写shell脚本或某些东西可以帮助我进入我想要的路径而无需复制和粘贴?

xxx@MacBook-Pro ~ mdfind -name "adapters.py"
/usr/local/Cellar/python/2.7.10_2/libexec/pip/build/lib/pip/_vendor/requests/adapters.py
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py
/usr/local/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py
/usr/local/Cellar/python/2.7.10_2/libexec/pip/pip/_vendor/requests/adapters.py
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.pyc

0 个答案:

没有答案