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/06/17 10:15] – jose | informatica:linux:script [2019/08/31 16:19] – 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 790: | Line 792: | ||
====== Poner fecha en historial history ====== | ====== Poner fecha en historial history ====== | ||
export HISTTIMEFORMAT=' | export HISTTIMEFORMAT=' | ||
+ | |||
+ | ====== Salir terminal sin grabar history ====== | ||
+ | kill -9 $$ | ||
====== Unixtime ====== | ====== Unixtime ====== | ||
Line 916: | Line 921: | ||
p pega | p pega | ||
| | ||
- | **Formatear yaml ** | + | ===== Formatear yaml json===== |
:%!python -m json.tool | :%!python -m json.tool | ||
- | Formatear xml | + | ===== Formatear xml ===== |
:%!xmllint --encode UTF-8 --format - | :%!xmllint --encode UTF-8 --format - | ||
informatica/linux/script.txt · Last modified: 2024/04/19 07:00 by jose