clean-up check-for-dead script
This commit is contained in:
parent
e390720c6f
commit
12869f5222
@ -7,7 +7,7 @@ for i in *.m3u ; do sed -i 's/ /_/g' $i ; done
|
||||
for i in *.m3u ; do for j in $(cat $i) ; do wget -S --spider -q -t 1 -T 1 --max-redirect 0 $j 2>&1 | grep "HTTP/" | awk '{print $2}' | (cat ; echo $j ;) | paste -s -d " " >> A-$i ; echo -e "$i - $j" ; done ; done
|
||||
|
||||
# find links that have 200 response code and remove others
|
||||
for i in A-*.m3u ; do cat $i | grep -B1 "200 " | sed -e 's/200 //g' -e 's/_/ /g' | awk 'length>3' | grep -A1 "#" | sed 's/ , /,/g' > A$i ; done
|
||||
for i in A-*.m3u ; do cat $i | grep -B1 "200 " | sed 's/200 //g' | awk 'length>3' | grep -A1 "#" > A$i ; done
|
||||
|
||||
# remove extra fluff from file names
|
||||
#for i in AA-*.m3u ; do mv $i $(echo $i | sed 's/AA-//') ; done
|
||||
|
Loading…
Reference in New Issue
Block a user