DISCUSSION: Find command
This thread is to discuss the article titled: Find command
Quote:
|
Quote:
that match the globbed pattern in the directory you invoke the command from if you don't wrap the search-string in quotes. E.g.. if you had the following directories in the local path Code:
pg2xbase-2.3.2 Code:
find . -name php* Code:
$ find -name php* Code:
$ find -name "php*" precedence :} Cheers, Tink |
Please note, this Tutorial has now been updated. Points 22 onwards are new.
|
Sometimes we need to find the file in server which we do not know where exactly it is located:
Search and list all files from current directory and down for the string ABC: Quote:
Quote:
Quote:
the system: (could take a long time) Quote:
Quote:
Quote:
Find all world writable files: Quote:
Quote:
Quote:
Quote:
|
Multiple commands in find
Hi Amit,
Could you help me out, if i want to run multiple commands in find command with -exec option, is there any way out to do this ? Thanks in Advance |
Quote:
See my post here for an example. |
Well, as long as this thread has been resurrected, I will add:
Use single quotes to prevent globing: Code:
BAD: Code:
SLOW: |
All times are GMT -5. The time now is 11:53 AM. |