[mythtv-users] User jobs - bash way to handle spaces in title ?
Jerry Bett
bjett80 at gmail.com
Mon Jun 26 16:45:50 UTC 2006
This may be more of a bash question than a myth question ... if so, forgive
me.
I have a user job that encodes shows for my Palm TX ... run as :
palmencode $FILE% "$TITLE%" "%SUBTITLE%"
'palmencode' is a bash script inputing the command line as $1, $2 and $3
However, if %TITLE% has a space in it, my script only reads to the first
space despite the
enclosing quotes around %TITLE% and %SUBTITLE%.
So, encoding "The Omega Man" gives me "The-Omega.avi" (Omega is seen as
the
%SUBTITLE%).
How can one get the full title with spaces and other special characters ?
Barry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060626/1d4fea50/attachment.htm
More information about the mythtv-users
mailing list