意外得到了电视节目的源?用#,%,ping 过滤掉过期的源
Listen now
Description
cat 节目源.txt | while read line ; do tmp=${line#*://}; host=${tmp%%/*}; hostnoport=${host%:*}; ping -c 1 $hostnoport; if [ 0 -eq $? ]; then echo $line >>tvpinged.txt;fi; done
More Episodes
Published 01/29/20
Published 01/29/20