~johanvandegriff/unix-shell-programming-revised-edition-programs

unix-shell-programming-revised-edition-programs/maze/old/makemaze_old.sh -rw-r--r-- 415 bytes
fc214385Johan Vandegriff added other old scripts, some newer ones too 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
cd
mkdir maze
cd maze
mkdir 1 2 3 4 5
cd 2
mkdir 1 2
cd 2
mkdir 1 2 3
cd 3
mkdir 1 2
cd ~/maze/4
mkdir 1 2 3 4
cd 3
mkdir 1 2 3 4
cd 4
mkdir 1 2 3 4
cd 3
mkdir 1 2 3
cd ../2
mkdir 1 2 3 4
cd 3
mkdir 1 2 3
cd 1
mkdir 1 2
cd ../../1
mkdir 1 2 3 4 5
cd 5
echo 'congradulations!!!!
You have reached the end.' > end
cd ~/maze/3
mkdir 1 2 3
cd 3
mkdir 1 2
cd 1
mkdir 1 2 3
cd