[mythtv-users] scheduler confusion
Simon Hobson
linux at thehobsons.co.uk
Fri Aug 8 12:42:06 UTC 2014
blind Pete <0123peter at gmail.com> wrote:
> Sorry about the very long lines, what is the correct way to handle long lines?
There isn't really a "correct" way.
One thing you could do would be to cut the date/time stamp as that's not of interest. So pipe your command through "cut -c n-999" where n is the first column of interest. So "cut -c28-999" would reduce :
> 2014-08-04 16:12:30.385293 I Title - Subtitle Ch Station Day Start End S C I T N Pri
> 2014-08-04 16:12:30.385391 I Muscle Car 73 7mate 04 16:11-16:39 1 2 2 A 2 -11
to :
> I Title - Subtitle Ch Station Day Start End S C I T N Pri
> I Muscle Car 73 7mate 04 16:11-16:39 1 2 2 A 2 -11
Still long lines, but less long.
It's a generic trick, in some cases the -f and -d options are more suitable - eg "f3-99 -d'<tab char>'" would drop the first 2 columns of a tab delimited file. Sometimes I'll use sed to extract just certain bits of interest, and never forget about your good friend grep. All standard tools available to you on the command line and pretty well guaranteed to be available on any 'unix like' system.
More information about the mythtv-users
mailing list