----- 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 :)

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

Cristian


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

Raspunde prin e-mail lui