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_SORT (1)

.ds Aq ’

NAME

tv_sort - Sort XMLTV listings files by date, and add stop times.

CONTENTS

SYNOPSIS

tv_sort [--help] [--by-channel] [--output FILE] [FILE...]

DESCRIPTION

Read XMLTV data and write out the same data sorted in date order. Where stop times of programmes are missing, guess them from the start time of the next programme on the same channel. For the last programme of a channel, no stop time can be added.

Tv_sort also performs some sanity checks such as making sure no two programmes on the same channel overlap.

<B>--output FILEB> write to FILE rather than standard output

<B>--by-channelB> sort first by channel id, then by date within each
channel.

<B>--duplicate-errorB> If the input contains the same programme more than once,
consider this as an error. Default is to silently
ignore duplicate entries.

The time sorting is by start time, then by stop time. Without <B>--by-channelB>, if start times and stop times are equal then two programmes are sorted by internal channel id. With <B>--by-channelB>, channel id is compared first and then times.

You can think of tv_sort as converting XMLTV data into a canonical form, useful for diffing two files.

EXAMPLES

At a typical Unix shell or Windows command prompt:
tv_sort <in.xml >out.xml
tv_sort in.xml --output out.xml
These are different ways of saying the same thing.

AUTHOR

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


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

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