Search Results

Search: Posts Made By: Nexy
18,302
Posted By MadeInGermany
Comment on the previous solution: it allows echo...
Comment on the previous solution: it allows echo ${array[-i]} because the =( ) splits on IFS i.e. space and newline.

If there is a cyclic shift, the % operator (modulo) is nice!
The following...
18,302
Posted By RudiC
You seem to have some logical errors in your...
You seem to have some logical errors in your script:
- mixing up array indices with array values (tmp being assigned a value but then used for an index).

- using a constant (2) when the shift...
Showing results 1 to 2 of 2

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