Re: [shell-script] PERL

2007-09-15 Por tôpico Bruno Gunter Fricke
O melhor é deixar as outras linguagens de fora e focarmos no Shell apenas, não acham? Assunto mais do que encerrado. - Original Message - From: Ivan lopes To: shell-script@yahoogrupos.com.br Sent: Saturday, September 15, 2007 12:54 AM Subject: Re: [shell-script] PERL Som

Re: [shell-script] shell1line

2007-09-15 Por tôpico Reinaldo Carvalho
- Bash Expansions data=root:x:0:0:root:/root:/bin/bash echo ${data#*:} # show after first : echo ${data##*:} # show after last : echo ${data%:*} # show before last : echo ${data%%:*} # show before fisrt : echo ${data/:/,} # Switch first match echo ${data//:/,} # Switch all matchs -- Reinal

Re: [shell-script] shell1line

2007-09-15 Por tôpico Ivan lopes
Iniciado # Extract many files: $ ls *.tgz| sed 's/^/tar xvzf /'| sh # prompt Ctrl + a - Jump to the start of the line Ctrl + b - Move back a char Ctrl + c - Terminate the command Ctrl + d - Delete from under the cursor Ctrl + e - Jump to the end of the line Ctrl + f - Move

Re: [shell-script] shell1line

2007-09-15 Por tôpico Ivan lopes
isso Tiago, vlw -- [ ]'s Ivan Carlos Da Silva Lopes Engenheiro Eletronico e Computacao UFRJ [As partes desta mensagem que não continham texto foram removidas]

Re: [shell-script] shell1line

2007-09-15 Por tôpico Tiago Barcellos Peczenyj
Ola Não entendi o proposito: seria algo como o famoso sed1line.txt ? http://www.student.northpark.edu/pemente/sed/sed1line.txt O que eu ja vi foi este material do aurelio: http://aurelio.net/curso/conectiva/conectiva-shell-prompt.html Mas a ideia não é má... basta começar :) On 9/15/07, Ivan