Search Results

Search: Posts Made By: Sundown
12,169
Posted By chapeupreto
Hi folks. You're right. That's the key. ...
Hi folks.

You're right. That's the key.
Just for studying purposes, I've created two bash scripts using different for loop syntax for solving this problem.

Here we go:

...
12,169
Posted By agama
You'll need to populate your array like this: ...
You'll need to populate your array like this:


typeset -a ARRAY
printf "\tEnter a list of numbers, with spaces: "
read ans
ARRAY=( $ans )


There are other ways, but I think this is...
Showing results 1 to 2 of 2

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