[Help-bash] Is it possible to directly use $# in for((;;))?
From:
Peng Yu
Subject:
[Help-bash] Is it possible to directly use $# in for((;;))?
Date:
Wed, 1 Apr 2015 20:33:42 -0500
Hi,
Of course, the following bash does not work. Is there a way to
directly use $# instead of first assigning it to a variable? Thanks.
for((i=0;i<#;++i))
do
echo $i
done
--
Regards,
Peng