Jak vybrat radky textu ..

Milan Kopacka mkop5230 na ss1000.ms.mff.cuni.cz
Středa Srpen 30 08:11:27 CEST 2000


On Wed, 30 Aug 2000, Miroslav BENES wrote:

> Pripadne by stacila utilita, ktera by jenom filtrovala kazdy n-ty
> radek. Da se na to nasadit nejaky bezny linuxovy programek nebo je
> potreba napsat neco vlastniho ?

GNU sed - z manu:

       The following address types are supported:
...
       first~step
              Match  every step'th line starting with line first.
              For example, ``sed -n 1~2p''  will  print  all  the
              odd-numbered  lines  in  the  input stream, and the
              address 2~5 will match every fifth  line,  starting
              with the second.  (This is a GNU extension.)
...

  Milan Kopacka




Další informace o konferenci Linux