Sunday, May 08, 2005

Finding use

Finding use for using find

$ find -size +100000k
./.evolution/mail/local/Inbox
./fun/kernel/src/linux-2.6.11-gentoo-r4/cscope.out
./fun/kernel/src/linux-2.6.11.7/cscope.out
./eclipse.tgz


$ find -size +100000k -and -name 'In*'
./.evolution/mail/local/Inbox


$ find -size +100000k ! -name 'In*'
./fun/kernel/src/linux-2.6.11-gentoo-r4/cscope.out
./fun/kernel/src/linux-2.6.11.7/cscope.out


$ find -size +100000k -or -name 'cscope_maps.vim*'
./.evolution/mail/local/Inbox
./fun/kernel/src/linux-2.6.11-gentoo-r4/cscope.out
./fun/kernel/src/linux-2.6.11.7/cscope.out
./.vim/plugin/cscope_maps.vim

$ find -amin -1 -name '*.c'
./test.c

$ find . -name "test.c" -and -maxdepth 1 -exec ls -l '{}' \;

0 Comments:

Post a Comment

<< Home