help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]