[mythtv-users] Shell Script for Creating Friendly Show Names
Joel Melohn
jlmelohn at jcsm.com
Sat May 1 16:28:49 EDT 2004
Try this script. You will need to edit the directory locations.
It is setup for using the video files under Windows. If you want to use it
under linux and want to have the spaces replaced by underscore, there are
two lines that you can uncomment to accomplish this.
Joel
-----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 11:26 AM
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythlink.sh
Type: application/octet-stream
Size: 2196 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20040501/3a7bec9c/mythlink.obj
More information about the mythtv-users
mailing list