Encontrando lo inesperado con el comando find

El comando find es una potente herramienta para buscar archivos. Muchas veces infrautilizada. Si no conocemos exactamente como funciona puede llegar a dar en algumos casos resultados llamativos.

GNU find searches the directory tree rooted at each given file name by
evaluating the given expression from left to right, according to the rules of precedence (see section OPERATORS), until  the
outcome  is  known  (the  left hand side is false for and operations, true for or), at which point find moves on to the next
file name.

If you are using find in an environment where security is important (for example if you are using it to  search  directories
that  are  writable  by  other users), you should read the “Security Considerations” chapter of the findutils documentation,
which is called Finding Files and comes with findutils.   That document also includes a lot more detail and discussion  than
this manual page, so you may find it a more useful source of information.

Busca el árbol de directorio con raiz en cada nombre de archivo dado evaluando las expresiones dadas de izquierda a derecha las reglas de precedencia , hasta que se conoce el resultado, en ese punto find se mueve al próximo nombre de archivo.

Comentarios

Comments powered by Disqus

MentorCruise