find - finding files.

I understand that to find a type of file using command find I could do "find -type f -name \*.htm -print".

However, I wish to find all files BUT *.htm.

Can I negate the search somehow?

Again, I have peeked into the man files etc... If anyone has an answer, Thanks in Advance!

try

find . -type f ! -name \*.htm -print

this will find any files but not *.htm

Note
make sure you in the right directory
the . (dot) will run the command from
current directory

Hi.. Somehow it does not work for me..

oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_> ls -l
total 29584
-rw-r--r-- 1 oracle dba 85 Jun 05 21:09 afiedt.buf
-rw-r--r-- 1 oracle dba 2806703 Sep 04 13:12 alert_ODBMSPRD.log
-rw-r--r-- 1 oracle dba 11619859 Jun 08 15:52 alert_ODBMSPRD_arch01.log
-rw-r--r-- 1 oracle dba 28700 May 24 20:57 ay23alert
-rw-r--r-- 1 oracle dba 738 Aug 29 16:45 reco_106850_odbmsprd.trc
-rw-r--r-- 1 oracle dba 22387 Aug 28 06:44 reco_129284_odbmsprd.trc
-rw-r--r-- 1 oracle dba 8869 Aug 27 01:33 reco_133942_odbmsprd.trc
-rw-r--r-- 1 oracle dba 782 Aug 07 17:18 smon_100048_odbmsprd.trc
-rw-r--r-- 1 oracle dba 645 Jul 28 17:42 smon_111560_odbmsprd.trc
-rw-r--r-- 1 oracle dba 1056 Aug 25 13:32 smon_122782_odbmsprd.trc
-rw-r--r-- 1 oracle dba 464670 Aug 28 07:10 smon_126696_odbmsprd.trc
-rw-r--r-- 1 oracle dba 788 Jul 25 22:43 smon_129464_odbmsprd.trc
-rw-r--r-- 1 oracle dba 84767 Aug 27 01:57 smon_134590_odbmsprd.trc
-rw-r--r-- 1 oracle dba 691 Jul 24 09:11 smon_146742_odbmsprd.trc
-rw-r--r-- 1 oracle dba 737 Aug 29 14:20 smon_157314_odbmsprd.trc
-rw-r--r-- 1 oracle dba 920 Jul 31 18:27 smon_165126_odbmsprd.trc
-rw-r--r-- 1 oracle dba 644 Aug 14 15:53 smon_179512_odbmsprd.trc
-rw-r--r-- 1 oracle dba 614 Aug 21 06:18 smon_27820_odbmsprd.trc
-rw-r--r-- 1 oracle dba 754 Jul 26 16:01 smon_71350_odbmsprd.trc
oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_> find . -type f! *.trc -print
find: 0652-009 There is a missing conjunction
oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_> find . -type f ! -name *.trc -print
find: 0652-009 There is a missing conjunction
oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_> set -o vi
oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_> find . -type f! -name *.trc -print
find: 0652-009 There is a missing conjunction
oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_> find . -type f ! -name *.log -print
find: 0652-009 There is a missing conjunction
oracle@CG_JDA1:/home/oracle/admin/ODBMSPRD/bdump_>

Thanks, ST2000

You need to put a backslash before the asterisk.