Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Check my enterprise dubs check cowsay bash

Name: Anonymous 2016-06-28 16:18

#!/bin/bash

if [ $# -eq 1 ]
then
cow=1
fi

b=$RANDOM
let "b %= 2"

function f() {
sed 's/$/ /g' | cut -b -32 | if [ $b -eq 1 ]
then
rev | tr '()/\\' ')(\/'
else
cat
fi
}

while true
do
if [ -z "$1" ]
then
exit
fi

echo ">>$1"
echo '[code]'

echo "$1" | egrep -q '([0-9])\1$'
if [ "$?" -eq 0 ]
then
r="OK"
msg="Well done!"
else
r="Error: InvalidDubsException"
msg="You failed!"
fi

s=$RANDOM
let "s %= 5"
ms=$RANDOM
let "ms %= 100"

echo "Dubs checker: v0.14 Input:$1 Result:$r"
if [ $cow ]
then
cowsay $(echo $msg | f $b) | f $b
else
echo "$msg"
fi

echo '
'
echo

shift
done
[/code]

Observer the enterprise dubs regex, and also enterprise random cowsay reversal.

You remember previous enterprise bash scripts of mine, such as the original sleep sort, from another /prog.

Name: Anonymous 2016-06-28 23:16

>>7
Don't call me fam. Your shit is unwanted here.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List