GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TV_SPLIT (1)

.ds Aq ’

NAME

tv_split - Split XMLTV listings into separate files by date and channel.

CONTENTS

SYNOPSIS

tv_split --output TEMPLATE [FILE...]

DESCRIPTION

Read XMLTV listings and split them into some number of output files. The output file chosen for each programme is given by substitutions on the filename template supplied. You can split listings by time and by channel.

The TEMPLATE is a filename but substitutions are applied: first %channel is replaced with the id of a programme’s channel, and then Date::Manip substitutions (which broadly follow date(1)) are applied based on the start time of each programme. In this way each programme is written to a particular output file. When an output file is created it will also contain all the channel elements from the input.

One or more input files can be given; if more than one then they are concatenated in the same way as tv_cat. If no input files are given then standard input is read.

EXAMPLE

Use tv_split --output %channel-%Y%m%d.xml to separate standard input into separate files for each day and channel. The files will be created with names like <B>bbc1.bbc.co.uk-20020330.xmlB>.

SEE ALSO

Date::Manip(3).

AUTHOR

Ed Avis, ed@membled.com.
Search for    or go to Top of page |  Section 1 |  Main Index


perl v5.20.3 TV_SPLIT (1) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.