[mythtv-users] OT: Re: channel changing/tuning

Andrew Burgess aab at cichlid.com
Tue Aug 14 16:08:51 UTC 2007


>#!/bin/bash
>Channel=abc
>Card=xyz
>Channel=$1
>Card=$2

>echo "Args provided: Channel: "   $Channel "    Card: "     $Card
>if [ $1 = abc ];
>then
>   echo "You must provide a channel number."
>   exit;
>fi

Here's a one-liner that does what you want:

Channel=${1?"Channel number required"}



More information about the mythtv-users mailing list