User Tools

Site Tools


informatica:linux:bash

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:linux:bash [2010/04/14 18:48] 150.214.57.108informatica:linux:bash [2015/04/13 20:19] (current) – external edit 127.0.0.1
Line 52: Line 52:
 echo "Resultado: "$Final" Kb/s en interfaz "$Interfaz echo "Resultado: "$Final" Kb/s en interfaz "$Interfaz
 </code> </code>
 +
  
 ===== Colorear archivos ===== ===== Colorear archivos =====
Line 68: Line 69:
  
 3. Grabar y salir 3. Grabar y salir
 +
 +
 +===== Colorear Línea de Comandos =====
 +
 +echo -en '\033[42m\033[43m'hola`tput sgr0`
 +
 +https://lh3.googleusercontent.com/-c9dZQIsNe-M/UT8f4IqjEbI/AAAAAAAAO9Y/01hoRL6NhXs/s485/bash_colors.png
 +
 +rojo
 +  echo -en '\033[1;37m\033[41m'rojo`tput sgr0`;echo
 +
 +verde
 +  echo -en '\033[1;37m\033[42m'verde`tput sgr0`;echo
 +
 +azul
 +  echo -en '\033[1;37m\033[46m'azul`tput sgr0`;echo
 +
 +
 +===== Logs =====
 +
 +  09/05-00:00:03.054 [08] <001 QUEUE>my_server-1.mydomain.com> queue::pollClients: Session 28 (0 Queued 0 Active)
 +
 +Extraer la cola:
 +
 +  cat log_file.txt | grep "pollClients: Session" | tail -n 1 | awk '{print $9}' | sed "s/^(//"
 +
informatica/linux/bash.1271270902.txt.gz · Last modified: 2015/04/13 20:19 (external edit)