Bash4

714 views

Published on

Palestra ministrada no FLISOL 2010 em Caxias do Sul/RS

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
714
On SlideShare
0
From Embeds
0
Number of Embeds
92
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Bash4

  1. 1. BASH 4 Amador Pahim Analista de RedesUniversidade de Caxias do Sul amador@pahim.org
  2. 2. --version● Bash 3 - July 27, 2004● Bash 4 - February 20, 2009
  3. 3. Case – new terminators ;;& testa próximo padrão;& executa próxima lista de comandos
  4. 4. Coproccoproc while read Entrada; do echo $Entrada; done echo Teste >&${COPROC[1]} read -u ${COPROC[0]} Saida echo $Saida
  5. 5. Mapfilemapfile array < file
  6. 6. Parameter substitution case modification echo ${var} - default echo ${var^} - 1º uppercase echo ${var^^} - All uppercase echo ${var,} - 1º lowercase echo ${var,,} - All lowercase
  7. 7. Declaredeclare -A array declare -l vardeclare -c var
  8. 8. Brace expansion echo {00..10..2} echo {100..50..10}
  9. 9. Substringecho ${@:0}
  10. 10. **shopt -s globstar echo **
  11. 11. $BASHPIDecho $BASHPID
  12. 12. readread -e -t 3 -i default var
  13. 13. Linkshttp://www.gnu.org/software/bash/ ftp://ftp.gnu.org/gnu/bash/ http://br.gnome.org/TWikiBar/

×