[ LUGOS ] shell: kako razdeliti besede v vrstici

Lego Andy me at andy.cx
Fri May 4 14:55:22 CEST 2001


> $ echo "14:23:03  all    3    1     0    96     484    1    110  0.13 
> 0.08  0.08" | tr -s \  | cut -f 7 -d\   
> 
> 484
> 
> Tole bi slo ? Backslash je zaradi presledka, 
> torej moras napisati tr -s backslash space space bar space cut...

Tole ni treba narediti. Pozabil sem narekovaje, samo deluje brez tistega tr.
Dovolj je samo cut -f 7 -d " "

			Andy

--
 /\  |  | |~\  \  /      ------------------------------------------------
/  \ |\ | |  |  \/      / e-mail: andy at x0.org  )\._.,--....,'``.
|--| | \| |  |  /      /  ICQ: 27889915       /,   _.. \   _\  (`._ ,.
|  | |  | |_/  /      /   http://andy.x0.org  `._.-(,_..'--(,_..'`-.;.'
----------------------                                  



More information about the lugos-list mailing list