Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-06-2016, 12:45 PM   #1
Registered: Jul 2011
Posts: 90

Rep: Reputation: Disabled
Exclamation can't understand this behavior of find command

Hello friends,

I want to list all the .c files except those under the
C_Progs directory. I used this command :

[san@desktop ~]$ find . -name *.c -o -name C_Progs -prune

and the output is :

Now i create a ABC.c file under current directory &
re-run the command, and this is what i get :

My question is why did find not lookup the .c files
under other directories this time ? Please help me understand this behavior.
Old 07-06-2016, 12:51 PM   #2
Registered: Jul 2011
Posts: 90

Original Poster
Rep: Reputation: Disabled
friends, i found out my answer.. Mods, please delete this thread.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to understand bind behavior on centos dmunkz Linux - Server 2 12-17-2015 03:47 PM
[SOLVED] /bin/bash command not find, strange behavior of passwd , kworker is dying after start igadoter Linux From Scratch 4 01-27-2015 05:08 AM
can't understand rsync's behavior at all baronsam Linux - Software 5 08-15-2006 02:46 PM
Help me to understand this command: find...| grep -e ... | xargs rm -f ROBERT483599 Red Hat 2 02-14-2006 09:21 AM
Can't *really* understand cron behavior maxbld Linux - General 3 11-21-2002 10:26 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration