[mythtv-users] Bash Script help please
Jeff volckaert
jvolckaert at gmail.com
Tue Oct 10 18:49:17 UTC 2006
> This is just for the record since it's working to the OP's
> satisfaction but bash does substitutions like this:
>
> TITLE=${TITLE//[^a-zA-Z0-9]/}
>
> It saves a subprocess which can be helpful in a loop.
>
I spoke too soon. I am using:
TITLE=`echo $3 | sed s/[^a-zA-Z0-9]//g`
($3 is the third variable passed to it which is TITLE)
and getting files like "Will-.avi".
I'll try using:
TITLE=$3
TITLE=${TITLE//[^a-zA-Z0-9]/}
and see if that helps.
Jeff
More information about the mythtv-users
mailing list