vicf

oldcatsay

Oct 26th, 2021
751
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/bash
  2.  
  3. _main(){
  4.         local web base howmany pick
  5.         OIFS=$IFS
  6.         IFS='
  7. '
  8.         web="https://pastebin.com/raw/FikF7UAM"
  9.         base=($(while read -r line ; do echo "$line" ; done <<<$(curl -s "$web" | tr -d '\r')))
  10.         howmany="${#base[@]}"
  11.         pick=$(echo "${base[$((RANDOM%howmany-1))]}")
  12.         echo "$pick"
  13. }
  14.  
  15. _main
  16.  
  17. unset IFS
  18. IFS=$OIFS
RAW Paste Data