Buscar clases java dentro de jars
find . -name "*.jar" |xargs grep -il NombreClase
find . -name "*.jar" |xargs grep -il NombreClase
find -type f -exec grep -l "texto_busqueda" {} + y si queremos que la búsqueda sea exacta (por palabras) find -type f -exec grep -lw "texto_busqueda" {} +
grep -m 1 -oE ‘([0-9]{1,3}\.){3}[0-9]{1,3}’
convert -density 300 musica.pdf musica.png Necesita imagemagic y ghostscript. Genera una imagen con cada página del pdf
Comandos útiles !! Repite el último comando. !n Repite el comando número n (de history). !$ Último argumento del comando anterior. !:n Argumento número n del comando anterior. Combinaciones de teclas Combinación de teclas Acción Ctrl + A Ir al comienzo de la línea Ctrl+E Ir al final de la línea Ctrl+F Ir al siguiente…
select * from tabla where dbms_lob.instr(campo, utl_raw.cast_to_raw(‘texto_a_buscar’))>0;
Para que el contenedor docker no se arranque antes de tener montadas las unidades nfs se hace lo siguiente: sudo systemctl edit docker.service (o sudo vi /etc/systemd/system/docker.service.d/override.conf) Añadir las siguientes líneas: ### Anything between here and the comment below will become the new contents of the file [Service] RequiresMountsFor=/mnt/montaje1 /mnt/montaje2 ### Lines below this comment…