每日一题--1
提取文件中资源所在的URL
例如https://www.linuxbaodian.com/sysmg/164.html
模拟文档下载位置:https://pan.baidu.com/s/1IrgmD93_4g23GSfTpcRY0w
答案:
``
sed -nr 's#(<loc>)(.*)(</loc>)#\2#gp' file_name
awk -F "[<>]" '/http/{print $3}' 1.txt `
转载于:https://blog.51cto.com/13447608/2287385