TV_SPLIT(1p)
π TV_SPLIT π
okay bestie, so tv_split is a User Contributed Perl Documentation page (that's the manual name btw, it lives in section 1p π) and it's literally about splitting XMLTV listings into separate files by date and channel. main character energy fr fr β¨
πΈ SYNOPSIS πΈ
tv_split --output TEMPLATE [FILE...]
π¦ DESCRIPTION π¦
so what it does: it reads XMLTV listings and splits them into some number of output files. the output file that gets picked for each programme is decided by substitutions on the filename template you hand it. and yeah β you can split listings by time and by channel, both at once, slay π
the TEMPLATE is a filename, but substitutions get applied to it:
- first
%channelgets replaced with the id of a programme's channel - and then
Date::Manipsubstitutions (which broadly followdate(1)) get applied based on the start time of each programme
and that's how each programme gets written to a particular output file. periodt.
also, when an output file is created, it will also contain all the channel elements from the input. not me forgetting that detail, it's important ok π
you can give one or more input files. if you give more than one, they're concatenated in the same way as tv_cat. if you give no input files at all, then standard input is read. no cap π«Ά
π 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. iconic naming behaviour honestly π
π SEE ALSO π
β AUTHOR β
Ed Avis, ed@membled.com.
okay that's the whole vibe check π§ this page was brought to you by perl v5.40.1, dated 2025-04-19, and it's TV_SPLIT(1p) from User Contributed Perl Documentation. go split some listings bestie, you got this ππΈπ¦
π¦ where this page comes from
- debian trixie: xmltv-util 1.4.0-1 Β· GPL-2.0-only
- ubuntu resolute: xmltv-util 1.4.0-1 Β· GPL-2.0-only
- ubuntu stonking: xmltv-util 1.4.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms