Christian Jacobsen wrote:
Hallo,
One feature wish (or one more who has not read manuals):
It would be nice to be possible to give a channel number as
paramater,
when starting vdr.
Use something like this :
sed 's/CurrentChannel = */CurrentChannel = 4/' \
/video.developement/setup.conf >/video/setup.conf.NEW
mv -f /video/setup.conf.NEW /video/setup.conf
Sets the start chanel to 4 !
Untested - so please don't hit me if it does not work ;)
*pulling out the big bat* ;)
I am not sure if "*" works as I have not tried it before.
Otherwise you will
have to find the current setting in setup.conf or use something else.
since 'sed' uses regular rexpressions you have to use ".*" rather than
"*"
For greater robustness:
cat /path/to/config/setup.conf |\
sed "s/^CurrentChannel = .*$/CurrentChannel = 4/" \
> /path/to/config/setup.conf.new
mv -f /path/to/config/setup.conf.new \
/path/to/config/setup.conf
Ciao UloPe
And if you have perl you can do