22 lines
472 B
Plaintext
22 lines
472 B
Plaintext
|
$ #!/bin/sh
|
||
|
$ title='My Restaurant Randomizer';
|
||
|
<!doctype html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title><% $title %></title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Welcome to <% $title %></h1>
|
||
|
<p>From the following restaurants:</p>
|
||
|
<ul>
|
||
|
$ while read restaurant; do
|
||
|
<li><% $restaurant %></li>
|
||
|
$ done <restaurants.txt
|
||
|
</ul>
|
||
|
<p>
|
||
|
The fates have decided that you shall eat at:
|
||
|
<strong><$% shuf -n 1 restaurants.txt %></strong>
|
||
|
</p>
|
||
|
</body>
|
||
|
</html>
|