Redian新闻
>
How to find a file in the deep children directory?
avatar
How to find a file in the deep children directory?# Unix - 噫吁兮,危乎高哉
h*r
1
Is there a tools in Unix like the Find in NT? I want get
all files with the same extension name, but grep won't
work for that way. Sombody can refer a good way to do it?
Thanks.
avatar
a*y
2
find dir-name -name '*.xyz' -print

【在 h****r 的大作中提到】
: Is there a tools in Unix like the Find in NT? I want get
: all files with the same extension name, but grep won't
: work for that way. Sombody can refer a good way to do it?
: Thanks.

avatar
c*t
3
On NT
start->find

【在 h****r 的大作中提到】
: Is there a tools in Unix like the Find in NT? I want get
: all files with the same extension name, but grep won't
: work for that way. Sombody can refer a good way to do it?
: Thanks.

avatar
A*u
4
为什么要加 '-print'??

【在 a****y 的大作中提到】
: find dir-name -name '*.xyz' -print
avatar
c*t
5
not necessary.

【在 A**u 的大作中提到】
: 为什么要加 '-print'??
avatar
a*y
6
nod nod, that's must be a old style.
I always use this alias, so didn't pay attention to it.
alias fn 'find * -name \!:* -print'

【在 c*****t 的大作中提到】
: not necessary.
avatar
A*u
7

^ this "*" sucks time. just use "."
also, \!:* might be simplified as !*

【在 a****y 的大作中提到】
: nod nod, that's must be a old style.
: I always use this alias, so didn't pay attention to it.
: alias fn 'find * -name \!:* -print'

avatar
s*t
8
if you system has "locate", you can try that. It's very fast, because
it's based on some index. but you cannot find the file you just created,
because it has not been indexed yet.

【在 a****y 的大作中提到】
: find dir-name -name '*.xyz' -print
avatar
a*y
9
Thanks for the correction. I now put this in my .cshrc :
alias fn 'find . -name \!*'
The find * actually doesn't include .dir

【在 A**u 的大作中提到】
:
: ^ this "*" sucks time. just use "."
: also, \!:* might be simplified as !*

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。