Search Results

Search: Posts Made By: onlyforbopi
2,113
Posted By RudiC
You wanted to enter the substring coordinates in...
You wanted to enter the substring coordinates in the n,m format. Try this small adaption of Don Cragun's suggestion:
for ((i=1 ; i <= $2; i++))
do echo "Enter starting digit and length of $i...
2,113
Posted By Don Cragun
I'm glad that we were able to help you solve your...
I'm glad that we were able to help you solve your problem.

If you find that a post helped you, hitting the :b:Thanks button at the bottom left corner of that post signifies your appreciation to...
2,113
Posted By Don Cragun
In the standards, a variable name (but,...
In the standards, a variable name (but, obviously, not a positional parameter) in expression in:
$((expression))
can be presented with or without a leading <dollar-sign> character to get the value...
2,113
Posted By Don Cragun
Assuming you're using a shell that recognizes...
Assuming you're using a shell that recognizes arrays, the following seems to avoid your syntax and logic errors:
#Initialize arrays
for ((i=1 ; i <= $2; i++))
do echo "Enter starting digit of $i...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy