Search Results

Search: Posts Made By: gazz1982
1,511
Posted By gazz1982
for loops can i loop in hundreds?
I have the following

for ((i=100; i<=1000; i++))
do

this goes in increments of 1

I need it to go up in increments of 100, how is that done in a for loop?
3,612
Posted By gazz1982
the latter nearly worked but just displayed ...
the latter nearly worked but just displayed
coordinate=$e1,$n1
coordinate=$e2,$n2

I need it to replace these with the actual values
3,612
Posted By gazz1982
counter in a variable - can it be done?
I have the following


for(( i=1; 1<=2; i++))
do
e1=123 n1=123
e2=456 n2=456
coord= $e1,$n1
echo "coordinate=$coord"
done
exit


this echos
coordinate=123,123

I need it to loop so:...
1,559
Posted By gazz1982
Counters and arrays help needed!
I am trying to write a program in a script .sh

I have a list of coordinates ie
e1=123 n1=123
e2=456 n2=456
e3=789 n3=789

I have a counter starting at 1
for (( i=1; i<=2; i++))
i need...
Showing results 1 to 4 of 4

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