On Sat, Jul 21, 2007 at 01:29:38PM +0300, Cristian wrote:
> 
> ----- Original Message ----- 
> From: "Andrei-Florian Staicu" <[EMAIL PROTECTED]>
> To: "Romanian Linux Users Group" <[email protected]>
> Sent: Saturday, July 21, 2007 12:48 PM
> Subject: [rlug] cut - numar de delimitatori
> 
> 
> >Salut
> >
> >Am un fisier de forma
> >a  11
> >bb 1
> >c  222
> 
> cat fisier | tr -s " " | whatever_you_want
> 
> sau
> 
> tr -s " " < fisier | whatever_you_want
> 
> Asta e valabil daca ce e in plus e " ". Daca ai si TAB si spatiu e mai 
> naspa :)
> 
sigur, :-)

tr -s ' \t' < fisier

:-)

> man tr
> 
> <...>
>       -s, --squeeze-repeats
>              replace each input sequence of a repeated character that 
> is listed in SET1 with a single occurrence of that character
> 
... that is listed in SET1 ..., :-)

-- 
"We must be systematic, but we should keep our systems open."
  -- Alfred North Whitehead, Modes of Thought --


_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui