TV_SPLIT(1)
π tv_split(1) β manual page, bestie edition π
Okay so welcome to the tv_split(1) page, coming at you from the User Contributed Perl Documentation corner of the internet. It's giving βsplit XMLTV listings into separate files by date and channel,β and honestly? iconic. π
β¨ NAME β¨
tv_split β Split XMLTV listings into separate files by date and channel. π
πΈ SYNOPSIS πΈ
tv_split --output TEMPLATE [FILE...]
π DESCRIPTION π
Okay so hereβs the tea, bestie: tv_split reads XMLTV listings and splits them into some number of output files. The output file chosen for each programme is decided by substitutions on the filename template you supply. You can split listings by time and by channel. No cap. β¨
The TEMPLATE is a filename, but substitutions are applied:
- First,
%channelis replaced with the id of a programmeβs channel. π¦ - Then,
Date::Manipsubstitutions (which broadly followdate(1)) are applied based on the start time of each programme. π
In this way each programme is written to a particular output file. And 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 is given, they are concatenated in the same way as tv_cat. If no input files are given, then standard input is read. periodt. π
π EXAMPLE π
Use this:
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 bbc1.bbc.co.uk-20020330.xml. π¦
π¦ SEE ALSO π¦
Date::Manip(3). Go peek, iykyk. π
π AUTHOR π
Ed Avis, ed@membled.com. Say hi! π«Ά
Okay bye bestie! π This page is from perl v5.42.2, dated 2025-06-30. π
π¦ where this page comes from
- alpine 3.24: xmltv-doc 1.4.0-r1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms