Comments on: Working with Arrays in Linux Shell Scripting – Part 8 https://www.tecmint.com/working-with-arrays-in-linux-shell-scripting/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Sun, 04 Sep 2022 10:00:48 +0000 hourly 1 By: Nitin https://www.tecmint.com/working-with-arrays-in-linux-shell-scripting/comment-page-1/#comment-1872485 Sun, 04 Sep 2022 10:00:48 +0000 http://www.tecmint.com/?p=6536#comment-1872485 will you please provide a solution to this?

Take a range from 0 – 100, find the digits that are repeated twice like 33, 77, etc and store them in an array.

]]>
By: swww https://www.tecmint.com/working-with-arrays-in-linux-shell-scripting/comment-page-1/#comment-931079 Sat, 04 Nov 2017 18:58:29 +0000 http://www.tecmint.com/?p=6536#comment-931079 Good collection of examples, especially command output assigning is nice. I wrote somewhat similar but more extensive article on arrays in BASH. Check it out here: wojnowski.net.pl/main/index/arrays-in-bash.

Regards

]]>
By: kumar https://www.tecmint.com/working-with-arrays-in-linux-shell-scripting/comment-page-1/#comment-898116 Mon, 03 Jul 2017 23:49:23 +0000 http://www.tecmint.com/?p=6536#comment-898116 Hi,

I want print only first and third element of the array.

what is the echo command?

]]>
By: Anoop C S https://www.tecmint.com/working-with-arrays-in-linux-shell-scripting/comment-page-1/#comment-801340 Fri, 22 Jul 2016 06:26:40 +0000 http://www.tecmint.com/?p=6536#comment-801340 In reply to Gulab.

Hi Gulab,

Sorry for being late..Got stuck with some other work. I would assume that by this time you might have found an answer to your question. Anyway following is my pov.

You can always insert elements into array by referring to the index numbers as I have mentioned in the article. By run time if you mean to have some kind of looping, then you could increment index number for the array within the loop and insert elements one by one. Checking for directory existence is not at all a complex task and you have various methods to do so (easy way: use if conditional statement with test expression parameter -d).

]]>
By: Gulab https://www.tecmint.com/working-with-arrays-in-linux-shell-scripting/comment-page-1/#comment-795801 Mon, 27 Jun 2016 13:34:47 +0000 http://www.tecmint.com/?p=6536#comment-795801 how to import multiple directory in array(run time log /var/log/ ) in runtime and check if directory is present or not ?

]]>