[mythtv-users] Shell Script for Creating Friendly Show Names

Michael Starks mythtv at michaelstarks.com
Sat May 1 12:25:49 EDT 2004


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