Help with find and source directories

Hi,
How can i find the types of files in some directory(~/mydir) that start with word "fix" then followed by number 3, 4, 7 or 8 and end with .ccp or .in

How can i find the total number of files that are larger than 5000 bytes in specific directory?, I can do it by current directory by using
find -size +5000c -print | wc -l
but how to find in specific directory ex: /home/user

Thanks

Hello,

Per our forum rules, all threads must have a descriptive subject text. For example, do not post questions with subjects like "Help Me!", "Urgent!!", "Doubt" or anything that does not accurately reflect the nature of your problem. Post subjects like "Execution Problems with Cron" or "Help with Backup Shell Script".

The reason for this is that nearly 95% of all visitors to this site come here because they are referred by a search engine. In order for future searches on your post (with answers) to work well, the subject field must be something useful and related to the problem!

In addition, current forum users who are kind enough to answer questions should be able to understand the essence of your query at first glance.

So, as a benefit and courtesy to current and future knowledge seekers, please be careful with your subject text. You might receive a forum infraction if you don't pay attention to this.

Thank you.

The UNIX and Linux Forums

'find' takes one or more directories before the other arguments, allowing you to tell it precisely where to look inside.

-print is usually redundant, since it does that by default unless you've told it to take a different action like -exec.

find ~/mydir \( -name 'fix[3478]*.ccp' -o -name 'fix[3478]*.in' \)
find ~/mydir -size +5000c | wc -l

Many thanks.

The first one gives me this error: Invalid expression; you have uesd a binary operator '-o' with nothing before it.

Type it in more carefully, I think you missed the first -name.