Deprecated: Use of ParserOutput::getProperty was deprecated in MediaWiki 1.38. [Called from MediaWiki\Skin\Cosmos\CosmosHooks::onOutputPageParserOutput in /var/www/html/doc/skins/Cosmos/includes/CosmosHooks.php at line 81] in /var/www/html/doc/includes/debug/MWDebug.php on line 377
Running a for loop over an array: Difference between revisions - PhenixOps
Anonymous
×
Create a new article
Write your page title here:
We currently have 27 articles on PhenixOps. Type your article name above or click on one of the titles below and start writing!



PhenixOps
27Articles

Running a for loop over an array: Difference between revisions

No edit summary
No edit summary
Line 3: Line 3:
Declare the string array<br>
Declare the string array<br>
<code>
<code>
SitesArray=("www.pladder.nl"  "www.lostlemon.nl" "www.nvsi.nl" "www.lostlemon.nl" "www.loketschuldhulpverlening.nl" "www.berekenuwrechtplus.nl" "www.e-kracht.nl" "www.erow.nl" "prod.jongerencentraal.nl" "lldorado.lostlemon.nl" "www.e-inwoner.nl" "www.toolkiteformulieren.nl" "www1.nvsi.nl" "www2.nvsi.nl" "yasmin.pladder.nl" "vpn01.lostlemon.nl")
SitesArray=("www.domain_1.nl"  "www.domain_2.nl" "www.domain_3.nl")
</code>
</code>



Revision as of 20:00, 15 May 2020

!/bin/bash

Declare the string array
SitesArray=("www.domain_1.nl" "www.domain_2.nl" "www.domain_3.nl")

Print array values in lines
echo "-----------------------------------------------------------------------------------------------------" for val1 in ${SitesArray[*]}; do echo "Information for $val1" openssl s_client -showcerts -connect $val1:443 2>/dev/null < Q.txt| openssl x509 -noout -issuer -subject -dates echo " " done