Filtering help please
dinkypumpkin
dinkypumpkin at gmail.com
Fri Nov 18 11:37:27 EST 2011
On 18/11/2011 15:17, Nigel Taylor wrote:
> get_iplayer --type=tv --long --versions=default[[:punct:]]?$
> ...
> INFO: 837 Matching Programmes
>
> This works on OpenBSD, Debian not tried on Windows..
For anyone keeping score, it works the same on Windows - it's all Perl
underneath. You may need to enclose a regular expression in quotes if
it contains shell metacharacters, which are different in Linux and Windows.
> You can verify that number using the index cache directly.. 838 includes a header line.
>
> $ cut -d"|" -f1,9 .get_iplayer/tv.cache | grep -v signed | grep -v audiodescribed | wc
> 838 838 10166
To the OP: If you are in fact attempting to gather some kind of
statistics, you might find it worthwhile to import the index cache file
into a spreadsheet or database. It's just delimited text, so easy to
import.
More information about the get_iplayer
mailing list