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: Toth Laszlo <zui@...>
Subject: sed 1liners
Date: Fri, 04 Nov 2005 10:49:56 +0100
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


Replies:
Re: sed 1liners
-- Szabo Bence
Re: sed 1liners
-- Toth Laszlo
Navigation:
Lists: gentoo-user-hu: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
openoffice-fsf-hu-2.0.0 ebuild
Next by thread:
Re: sed 1liners
Previous by date:
Re: wmii telepites para
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.