Try find * -maxdepth 0 -name "efence*" -prune -o -print The prune option does print matching files, if no other options are specified (it still prevents find from recursing into matching directories, however). Edited to add explanation: find expressions distinguish between tests and actions. From man find: The expression is made up of options (which affect overall operation rather than the processing of a specific file, and always return true), tests (which return a true or false value), and actions (which have side effects and return a true or false value), all separated by operators.
-and is assumed where the operator is omitted. If the expression contains no actions other than -prune, -print is performed on all files for which the expression is true. My emphasis So -prune is an action which has the side effect that find will not recurse into subdirectories which match the preceding test (in your case, -maxdepth 0 -name "efence*").
But in terms of the truth-value of the expression, it's equivalent to just having find * -maxdepth 0 -name "efence*" -true and since you didn't specify any other action, -print is assumed (this assumption is always present as it allows you to type e.g. Find . -name "*. Java" instead of find .
-name "*. Java" -print). Hope that makes sense.
The accepted answer at the other thread talks about the same thing.
Wow, it worked! How does -o print does the magic? – kingsmasher1 Aug 1 at 14:16 I am accepting your answer, but please explain me how does -o print does the magic.
– kingsmasher1 Aug 1 at 14:17.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.