bash 中的正则表达式(下载正则表达式的输出)

标签 regex bash

我有一个如下所示的文件:

<a href="some-adress">some-txt</a>
<a href="some-adress">some-txt</a>
<a href="some-adress">some-txt</a>
...

我需要下载所有“some-adress”文件,我怎样才能仅使用 bash 来做到这一点?

最佳答案

为什么不使用 wget ?它已经具有该功能:

wget -i --force-html yourfile.html

关于bash 中的正则表达式(下载正则表达式的输出),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3746691/

相关文章:

庆典 shell : change multiple file names to add leading zeros

javascript - JS 字符串 : Add whitespace between numbers and letters

regex - perl - 正则表达式之间的范围

javascript - 如何检查密码是否至少包含允许的特殊字符之一?

PHP Regex preg_match提取

java - Java 中的字符串分割

Bash:如何检测管道中的错误

ios - 智能排序 Localized.strings 文件

bash - 根据文件所在的文件夹移动和重命名文件

python - 如何让 `python` 在 WSL bash 中运行 Python 3?