0

Script:

$ cat test.sh
#!/bin/bash
while read line
do

    echo "Line is : $line"


    openssl s_client -showcerts -connect "$line:443" | grep Certificate

done < top100.csv

The top100.csv file contains the URL's for the top 100 websites for the script to run through. However, the script is only outputting the certificate for the first website, this being google.com. I need it to keep looping through the rest of the lines of the file.

I apologize in advance for any wording errors or misspelling.

Wpt
  • 1
  • 2
  • Possible duplicate of [Read a file line by line assigning the value to a variable](https://stackoverflow.com/questions/10929453/read-a-file-line-by-line-assigning-the-value-to-a-variable) – tod Nov 12 '18 at 02:02
  • I don't believe so. That post has more to do with parsing the file and EOF. – Wpt Nov 12 '18 at 02:20
  • What is your top100.csv content – asio_guy Nov 12 '18 at 03:14

0 Answers0