Randombg.sh

From Federal Burro of Information
Revision as of 18:55, 6 March 2021 by David (talk | contribs) (Created page with "<pre> #!/bin/sh set -- /data/pictures/misc/* length=$# random_num=$(( $RANDOM % ($length + 1) )) echo fbsetbg ${!random_num} fbsetbg ${!random_num} <pre> category:script")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
#!/bin/sh

set -- /data/pictures/misc/*
length=$#
random_num=$(( $RANDOM % ($length + 1) ))
echo fbsetbg ${!random_num}
fbsetbg ${!random_num}