Lunch rand

From Wiki
Revision as of 12:58, 31 January 2020 by 10.0.7.29 (talk) (New page: """In preparation""". Usage (written for python 3.5 and newer): This script will randomly decide where you should go for lunch: # copy following text to blank file named ""lunch_rand.sh"...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

"""In preparation""". Usage (written for python 3.5 and newer):

This script will randomly decide where you should go for lunch:

  1. copy following text to blank file named ""lunch_rand.sh""
  1. ! /bin/bash

echo Here are the choices where you can go for lunch: echo echo "1) URV 2) ICIQ 3) Chinos (across the street) 4) Burger place 5) Pizza up the street 6) delta" > e.tmp cat e.tmp echo echo Your faith has been decided: odlucivalac=$((RANDOM % 6))

  1. echo $odlucivalac

head -$odlucivalac ./e.tmp | tail -1

  1. make ""lunch_rand.sh"" executable:
   chmod +x curls.py
  1. to run script type:
   ./lunch_rand.sh
  1. now you can go for lunch