shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] dividir uma string de 2 em 2 caracteres


From: Aurelio Marinho Jargas
Subject: Re: [shell-script] dividir uma string de 2 em 2 caracteres
Date: Fri, 9 Jul 2004 16:25:32 -0300 (ART)

alou,

--- address@hidden escreveu: 

> Em Sex 09 Jul 2004 09:36, Aurelio Marinho Jargas escreveu:
> > $ echo $VAR | sed 's/../& /g'

> diga-se de passagem que em "tese" minha solução (não a mais
> simples) é mais condizente com os objetivos da lista
> (shell-script).

ué, não entendi. sed não é shell-script?

se você acha isso por considerar o sed uma ferramenta externa,
então teu script é menos shell ainda, pois usou as ferramentas
ls, cut e expr  ;)

- shell é shell, o bash. while, if, for, variáveis, etc.

- shell-script é usar o shell _e_ as ferramentas disponíveis
  no sistema em conjunto.

nesse apanhado de ferramentas, entra:

   ls, cut, grep, sed, awk, find, cat, expr, head, tail, ...

não entendi onde o sed é diferente do cut nesse contexto.

falou!


=====
-- 
Aurelio Marinho Jargas, Curitiba, Conectiva
txt2tags v2.0 beta3 http://txt2tags.sf.net/beta/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]