Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh insult
379 B · 19 lines
at main
1234567891011121314151617181920#!/usr/bin/env bash
_count=$1shift 1_separator_command="${@:-"echo"}"
( expr "$_count" : '^[0-9]\{1,2\}$' >/dev/null ) || _count=1
while [ $_count -ne 0 ]; do _count=$(($_count-1))
wget http://www.randominsults.net -O - 2>/dev/null | \ grep '<strong>' | \ sed "s:^.*<i>\(.*\)</i>.*$:\1:"
if [ $_count -ne 0 ]; then eval "${_separator_command}" fidone