Quantcast
Channel: Geeklets
Viewing all articles
Browse latest Browse all 81

Custom Quotes - Very Easy To Use

$
0
0

Custom Quotes - Easy Easy Easy

Hope you enjoy :)

all you need to do is to insert your quotes into the array that exist in the script, for example:

Q[0]="First"
Q[1]="Second"

...

The script:

#!/bin/sh

Q[0]="First"
Q[1]="Second"

rnd=$(( ( RANDOM % ${#Q[@]} -1 | bc )  + 1 ))
echo \"${Q[$rnd]}\"

**Don't Forget to change "Refresh every:" to how many seconds you want for updating

** Enjoy! :)**


Viewing all articles
Browse latest Browse all 81