Bash 打印从文本导出的所有链接

Bash 打印从文本导出的所有链接,bash,shell,Bash,Shell,在这个文本文件中有一些链接。我正在尝试创建一个脚本,允许我打印所有链接(我已经把所有链接都用粗体显示,以便您理解)。 输出应该是彼此下面的所有链接 非常感谢你的回答 tipo_evento,data_inizio,data_fine,ora_inizio,ora_fine,tutto_il_giorno,data_inserimento,autore,classe_desc,gruppo_desc,nota,aula,tipo,materia Nota Agenda,2020-11-03,202

在这个文本文件中有一些链接。我正在尝试创建一个脚本,允许我打印所有链接(我已经把所有链接都用粗体显示,以便您理解)。 输出应该是彼此下面的所有链接

非常感谢你的回答

tipo_evento,data_inizio,data_fine,ora_inizio,ora_fine,tutto_il_giorno,data_inserimento,autore,classe_desc,gruppo_desc,nota,aula,tipo,materia
Nota Agenda,2020-11-03,2020-11-04,,,SI,2020-10-30 12:33:25,,,,Esercitarsi con la parte pratica del libro da pag 25 a pag 28,-,compiti,SISTEMI E RETI
Nota Agenda,2020-11-03,2020-11-03,08:00:00,09:00:00,NO,2020-11-03 08:01:31,DE  ,,,**https://example.example.com/orx-aadf-dgd** ,-,nota
Nota Agenda,2020-11-03,2020-11-03,09:00:00,10:00:00,NO,2020-11-03 08:56:01, ,,,Pag 53, write an article and deliver it on classroom by 20:00 PM **https://example.example.com/afb-iddr-dmj** ,-,nota
Nota Agenda,2020-11-03,2020-11-03,10:00:00,11:00:00,NO,2020-11-03 10:04:12, ,4DINF,,LetteraturaGalileo Galilei: studiareDa pag. 90 a pag.96                                                                           **https://example.example.com/sbf-hpmh-ybd** pag.104  più lettura pag. 105 e analisi delmtesto pag.108Pag.110Da pag.114 a pag116 più lettura pag.121 e nalisi del testo pag. 124 e schema pag  142L'lluminismo: studiare pag. :00:00,NO,2020-11-03 09:48:31, ,4DINF,,Interrogazione , ,  e  da pag 74 a pag.94 bene pag. 92-93 -94 più powerpointStudiare da pag . 108 a pag. 119Fare esercizo pag. 97 n3 e pag.122 n 3,-,compiti,STORIA
Nota Agenda,2020-11-03,2020-11-03,12:00:00,14:00:00,NO,2020-10-29 08:46:23, ,,,**https://example.example.com/usg-iurq-udq** ,-,nota

首先,你需要展示你的脚本,我们可以帮助你

您可以使用以下内容:

grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*"  file
结果:

https://meet.google.com/orx-aadf-dgd
https://meet.google.com/afb-iddr-dmj
https://meet.google.com/sbf-hpmh-ybd
https://meet.google.com/usg-iurq-udq