This is a Simple usage Example of a 'For' loop in Shell Scripting. Program Code: #!/bin/bash #Simple for Loop Usage echo " Value of N : " read n for ((i=1; i<=n; i++)) do echo " Loop Counter is : $i" done Program Output:
Post a Comment