#!/bin/sh
[ $# -eq 1 ]||{
echo 'pls input a number'
exit 1
}
test=$1
for n in `seq $(man bash|grep random -i | sed -n 2's/^.*0 and \([0-9]*\) is.*/\1/g'p)`
do
num=`echo $n|md5sum|cut -c 1-10`
[ "$num" == "$test" ]&&{
echo "$n $test"
}
done
#!/bin/sh
[ $# -eq 1 ]||{
echo 'pls input a number'
exit 1
}
test=$1
for n in `seq $(man bash|grep random -i | sed -n 2's/^.*0 and \([0-9]*\) is.*/\1/g'p)`
do
num=`echo $n|md5sum|cut -c 1-10`
[ "$num" == "$test" ]&&{
echo "$n $test"
}
done