[mythtv-users] Shell Script for Creating Friendly Show Names
Jeff C
myth at express.tc
Sat May 1 12:46:31 EDT 2004
Have you looked at mythlink.sh in the contrib. dir? I think it already does
what you want.
> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org [mailto:mythtv-users-
> bounces at mythtv.org] On Behalf Of Michael Starks
> Sent: Saturday, May 01, 2004 12:26 PM
> To: mythtv-users at mythtv.org
> Subject: [mythtv-users] Shell Script for Creating Friendly Show Names
>
> I have downloaded Rob Snow's perl script from the contrib directory of
> CVS. I am able to use the script to convert the "non-friendly"
> filenames to "friendly" filenames and am not trying to create a Bash
> script to make links from them.
>
> In his readme, he references a small Bash script to use mythencode. I
> am trying to take that and modify it to make friendly links using
> mythname.pl. I have:
>
> ----
> #!/bin/sh
> for i in `find /home/media/tv_recordings/*.nuv -mtime +1`; do
> ./mythname.pl --host localhost -s $i
> done
> ---
>
> This outputs the shown names. Now I need to input them to the ln
> command. I've tried various pipes and redirects in combination with the
> ln command but can never quite get it right. (No experience in Bash
> scripting). How can I do this? Thanks.
More information about the mythtv-users
mailing list