[mythtv-users] Bash Script help please

Michael Lynch lynchmv at gmail.com
Tue Oct 10 22:07:29 UTC 2006


On 10/10/06, Jeff volckaert <jvolckaert at gmail.com> wrote:
> > 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.
> >
> > - George
> What would the syntax be if I wanted to replace any non-alpha chars
> with an underscore?
>
> Thanks,
> Jeff
>

I can't give you the syntax right off hand, but I have found this page
very helpful when doing scripts such as yours.

http://www.student.northpark.edu/pemente/sed/sed1line.txt


More information about the mythtv-users mailing list