Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user-hu
Navigation:
Lists: gentoo-user-hu: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user-hu@g.o
From: Szabo Bence <szbence@...>
Subject: Re: sed 1liners
Date: Fri, 04 Nov 2005 14:08:00 +0100
Probald meg, hogy a $i kore nem ''-ket hanem ""-ket raksz.

Toth Laszlo wrote:
> Hali.
> 
> A problemam a kovetkezo:
> x=`cat fajl| wc -l`
> for i in `seq 1 x`
>    do betu=`sed '$i q;d' fajl | wc -c`
>          echo betu
> done
> 
> Ez elvileg minden sorra kiirna a soronkenti karakterek szamat.
> De a sed scriptben a $i nem veszi fel a ertekeit.
> Az eredmeny eleg fura. Vmiert mindig a fajl osszes karaktereinek szama + 4.
> pl:
> #cat fajl | wc -l
> 676
> #./script fajl
> 680
> 680
> 680
> ...
> 680
> 
> annyiszor ahany sor van.
> 
> Elore is koszi, udv
> 
> zui

-- 
gentoo-user-hu@g.o mailing list


References:
sed 1liners
-- Toth Laszlo
Navigation:
Lists: gentoo-user-hu: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: sed 1liners
Next by thread:
hiányzó lib*.la állományok
Previous by date:
Re: sed 1liners
Next by date:
Re: sed 1liners


Updated Jun 17, 2009

Summary: Archive of the gentoo-user-hu mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.