SHARE
TWEET

Untitled

a guest Oct 9th, 2019 94 in 172 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. truncate -s0 online.txt offline.txt
  4.  
  5. while read line; do
  6.     if curl -Ls "$line" &> /dev/null; then
  7.         echo "$line" >> online.txt
  8.     else
  9.         echo "$line" >> offline.txt
  10.     fi
  11. done < "$1"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top