checkurls

#!/bin/bash INPUT="urls.txt" OUTPUT="urlstatus.txt" while read line ; do if ping -c 1 $line &> /dev/null then echo "$line valid" >> $OUTPUT else echo "$line not valid " >> $OUTPUT fi done < $INPUT exit

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.