指定目录架构跳过一个级别 [英] specify directories architecture skip one level
本文介绍了指定目录架构跳过一个级别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这些目录看起来像 ./ 2012 / NY / M /
./ 2012 / NJ / F /
.etc
我想查找 / f $
我尝试过<$ p>
c $ c> ./ 2012 / * / F 但不起作用...
解决方案
./ 2012 / * / F
应该会返回所有目录,无论状态。
下面的文件,你必须为他们的glob: ./ 2012 / * / F / *
the directories looks like ./2012/NY/M/
./2012/NJ/F/
and .etc
I'd like to find all files under /f
no matter which state it is in
How should I write?
I tried ./2012/*/F
but it does not work...
解决方案
./2012/*/F
should return you all the directories no matter the state.
If you want the files under that, you've got to glob for them too: ./2012/*/F/*
这篇关于指定目录架构跳过一个级别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文