打开文件夹中的所有文件 [英] Open all files in a folder
本文介绍了打开文件夹中的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设您想打开结帐文件夹中/trunk 子目录下的所有文件.假设文件名为 first.c second.rthird.cpp.如何用一个命令将所有文件打开到 vim 中.
Suppose you'd like to open all the files in your checkout folder under the /trunk subdirectory. Assume the files are called first.c second.r third.cpp. How can you open all the files into vim with a single command.
显而易见的答案如下
$ vim first.c second.r third.cpp
但是你能更简单地做到这一点吗?
But can you do this more simply?
推荐答案
听起来像是在使用 linux 或某些 Unix 变体.使用星号获取当前文件夹中的所有文件:
Sounds like you're on linux or some Unix variant. Using the asterisk gets you all files in the current folder:
$ vim *
这篇关于打开文件夹中的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文