informatica:linux:script
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatica:linux:script [2019/07/29 07:29] – jose | informatica:linux:script [2020/03/08 14:08] – jose | ||
---|---|---|---|
Line 349: | Line 349: | ||
En bash: | En bash: | ||
let i=$i+1 | let i=$i+1 | ||
+ | |||
+ | expr 1 + 1 | ||
En sh: | En sh: | ||
i=$(($i + 1)) | i=$(($i + 1)) | ||
Line 788: | Line 790: | ||
20190420_225307 | 20190420_225307 | ||
- | ====== Poner fecha en historial history | + | ====== History ====== |
+ | |||
+ | ===== Poner fecha en historial history ===== | ||
export HISTTIMEFORMAT=' | export HISTTIMEFORMAT=' | ||
- | ====== Salir terminal sin grabar history | + | ===== Salir terminal sin grabar history ===== |
kill -9 $$ | kill -9 $$ | ||
+ | |||
+ | ===== Historial infinito ===== | ||
+ | export HISTSIZE="" | ||
+ | |||
+ | |||
====== Unixtime ====== | ====== Unixtime ====== | ||
Line 923: | Line 932: | ||
===== Formatear xml ===== | ===== Formatear xml ===== | ||
:%!xmllint --encode UTF-8 --format - | :%!xmllint --encode UTF-8 --format - | ||
+ | ===== Carácteres especiales ===== | ||
+ | Para ver los carácteres especiales: | ||
+ | :set list | ||
+ | Vi añade newline al final de fichero. Si obtenemos el error **No newline at end of file** al hacer un diff por ejemplo, podemos hacer esto para verlo, aparecerà un \n en uno de los ficheros al final: | ||
+ | od -c fichero | ||
====== Buscar paquete debian ====== | ====== Buscar paquete debian ====== |
informatica/linux/script.txt · Last modified: 2024/04/19 07:00 by jose