On 24 Aug 2006 11:06:27 -0700,
yuetwah2000@hotmail.com
<yuetwah2000@hotmail.com> wrote:
> In Shell script, how do I check if a variable contains a :?, there is
> something like variable =~ : in Perl, what about in Perl?
>
case $variable in
*:\?*) echo yes ;;
*) echo no ;;
esac
--
The major sin is the sin of being born.
-- Samuel Beckett