DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

move all array's picture

Unregistered

Feeds

aliases

  • move all array

move all array

4 years ago

in bash shell script declaring/creating arrays | Bourne shell scripting | Tech-Recipes on Tech-Recipes
here is another method to add elements to an array


for foo in $(find -type f -iname "*.png" -printf "%fn"); do
file[${#file[*]}]=$foo
done



will create an array of all png files
Returning? Login