Posted on Leave a comment

find

Tengo problemas cada ves que realizo un busqueda sencilla p.e.


sudo find . -name *.xls
[sudo] password for xcero:
./viaticos.xls
find: WARNING: Hard link count is wrong for ./Network/ this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.

No podia omitir excluir la carpeta ./Network

me sugerieron

 find . -type d ( -iname "*.xls" ! -iname "directorio" ! -iname "." )  -exec find {} ;

El problema que no acepta subdirectorios es decir

 find . -type d ( -iname "crono*" ! -iname "/home/xcero/Network" ! -iname "." )  -exec find {} ;
find: warning: Unix filenames usually don't contain slashes (though pathnames do). That means that '-iname /home/xcero/Network' will probably evaluate to false all the time on this system. You might find the '-wholename' test more useful, or perhaps '-samefile'. Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ /home/xcero/Network'

la solucion usar MC con la misma orden

Leave a Reply

Your email address will not be published. Required fields are marked *