Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: printing channel list



Hi,

On Fri, May 28, 2004 at 12:06:40PM +0200, Wolfgang Rohdewald wrote:
> I am looking for a simple script that reads channels.conf
> and prints a channel list like below.
> 
> Before writing it myself - does something like this already exist? 
> 
> 
> 
> TV:
> 1 ARD
> 2 ZDF
> 
> Radio:
> 500 Swiss Pop
> 501 Swiss Jazz

awk -F':' ' { if (/^:/)  { print "\n" $2 ": " } else { print $1 } } '
channels.conf

All in one line. This will produce one newline at the beginning, but I
don't care ;-)

Bye,
Matthias
-- 
Matthias.Mueller@rz.uni-karlsruhe.de
Rechenzentrum Universitaet Karlsruhe
Abteilung Netze




Home | Main Index | Thread Index