由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - How to find a file in the deep children directory?
相关主题
我的alia放在script里为什么不工作?一个unix .cshrc的wenti
HELP!! (CXTERM)问一个列目录的问题
a question about "find"?how to change the log in shell?
[转载] 问一个问题replace a string in all files under a directory?
how to let a command set in .cshrc run?where is the pre-build version of cxterm-solaris
UNIX dummy Questions?coconut,关于directory grep的问题
what is wrong with my alias?how to remove a whole directory?
Unix下是否有记录所有用户command history的工具?how to let grep search
相关话题的讨论汇总
话题: find话题: directory话题: file话题: deep话题: children
进入Unix版参与讨论
1 (共1页)
h****r
发帖数: 2056
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.
a****y
发帖数: 1035
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.

c*****t
发帖数: 1879
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.

A**u
发帖数: 2087
4
为什么要加 '-print'??

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

【在 A**u 的大作中提到】
: 为什么要加 '-print'??
a****y
发帖数: 1035
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.
A**u
发帖数: 2087
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'

s***t
发帖数: 195
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
a****y
发帖数: 1035
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 !*

1 (共1页)
进入Unix版参与讨论
相关主题
how to let grep searchhow to let a command set in .cshrc run?
cxterm installation problemUNIX dummy Questions?
UNIX Tip: the bad and the goodwhat is wrong with my alias?
ls in Unix (Sun)Unix下是否有记录所有用户command history的工具?
我的alia放在script里为什么不工作?一个unix .cshrc的wenti
HELP!! (CXTERM)问一个列目录的问题
a question about "find"?how to change the log in shell?
[转载] 问一个问题replace a string in all files under a directory?
相关话题的讨论汇总
话题: find话题: directory话题: file话题: deep话题: children