Turn Bash Into A Game Of Chance With $RANDOM
DistroTube
This short video demonstrates how you can make the terminal a bit more exciting by introducing a bit of randomness into your commands.
THE COMMANDS: [ $[$RANDOM % 10] = 0 ] && command1 || command2 [ $[$RANDOM % 10] = 0 ] && timeout 5 command1 || command2 alias clear='[ $[$RANDOM % 1] = 0 ] && cd /home/dt/vt100 && ./slowcat.pl $(/bin/ls | grep .vt | shuf -n 1) || clear'
REFERENCED: âş https://www.tldp.org/LDP/abs/html/randomvar.html âş https://en.wikipedia.org/wiki/VT100 âş http://artscene.textfiles.com/vt100/ - VT animations âş http://artscene.textfiles.com/viewers/linux/slowcat.pl - Slowcat perl script
WANT TO SUPPORT THE CHANNEL? đ° Patreon: https://www.patreon.com/distrotube đł Paypal: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=derek%40distrotube%2ecom&lc=US&item_name=DistroTube&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest đď¸ Amazon: https://amzn.to/2RotFFi đ Teespring: https://teespring.com/stores/distrotube
SOCIAL PLATFORMS: đ¨ď¸ Mastodon: https://mastodon.technology/@distrotube đŹ IRC: irc://freenode #distrotube đŤ Reddit: https://www.reddit.com/r/DistroTube/ đ˝ď¸ LBRY: https://lbry.tv/$/invite/@DistroTube:2
DT ON THE WEB: đ¸ď¸ Website: http://distrotube.com/ đżď¸ Gopherhole: gopher://distro.tube đ GitLab: https://gitlab.com/dwt1
FREE AND OPEN SOURCE SOFTWARE THAT I USE: đ Brave Browser - https://brave.com/dis872 đ˝ď¸ Open Broadcaster Software: https://obsproject.com/ đŹ Kdenlive: https://kdenlive.org đ¨ GIMP: https://www.gimp.org/ đ Audacity: https://www.audacityteam.org/ đť VirtualBox: https://www.virtualbox.org/
Your support is very much appreciated. Thanks, guys! ... https://www.youtube.com/watch?v=BAjjiWm9MsY
85630427 Bytes