[mythtv-users] Bash Script help please
Jeff volckaert
jvolckaert at gmail.com
Tue Oct 10 17:19:19 UTC 2006
Hello Everybody,
I am trying to create a script to transcode files for a PDA. I am
trying to save the file with the filenanme as TITLE-STARTTIME.avi.
I'm trying to remove non-alphanumeric chars in TITLE and am stuck. I
thought the following script code would work for 'Will & Grace', but
it doesn't.
# Remove non-alpha characters from TITLE
[[ $TITLE =~ s/[^a-zA-Z0-9]//g ]]
echo $TITLE
I still get 'Will & Grace' instead of 'WillGrace'.
Any help?
Thanks,
Jeff
More information about the mythtv-users
mailing list