shell - Shell Scipt 仅运行 100 个站点的证书的单次迭代,它应该运行 100 次
问题描述
脚本:
$ 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
top100.csv 文件包含脚本要运行的前 100 个网站的 URL。但是,该脚本仅输出第一个网站的证书,即 google.com。我需要它来循环遍历文件的其余行。
对于任何措辞错误或拼写错误,我提前道歉。
解决方案
推荐阅读
- cordova - 用于 iOS 13.2 的离子 WKWebView 的泛事件问题
- java - 运行 jar 文件的进程构建器
- angular - 计算满足 By.css() 的元素个数
- powerbi - 如何为 power bi 中的数值列创建过滤器?
- css - 中央对齐砌体网格
- python - 如何使用 sklearn 在 2D 图像/阵列上获得核密度估计器?
- c# - 如何一键扫描所有页面如下:
- azure - Azure 市场上的应用程序提交失败,代码为“1000.3.1”AAD 单点登录
- python - Keras 功能 api 多输入:传递给模型的输入列表是多余的
- android - RecyclerView (FirestoreRecyclerOptions) 出现在活动的 onCreate 中,但在按下后退按钮时为空