-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlower.sh
More file actions
40 lines (32 loc) · 1.24 KB
/
Flower.sh
File metadata and controls
40 lines (32 loc) · 1.24 KB
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
38
39
#!/bin/bash
# This is another example to show what a function could look like or do.
flower(){
# Echo command prints words to user.
echo "hello if you would like to see a pretty artistic flower then type flower"
# Cat command follow by two less than symbols will print out what ever is between the two 'EOF's end of file symbol.
cat << EOF
---------------------------------
........m......m.......m........
.......mm.....mmm.....mmm.......
.....mmmmm.mmmmmmm...mmmmm......
......mmm....mmmm....mmmm.......
.......mmmmmmmmmmmmmmmmmm.......
........mmmmmmmmmmmmmmmm........
............mmmmmmmm............
..............mmm...............
...............m................
...............m................
...............m................
...............m................
...............m................
---------------------------------
i picked this one fresh just for you
EOF
# This curly bracket here is the close to the function.
}
# This calls the function you dont actually type flower in this example its just a flower from the may program.
flower
# Holds user till enter press just in case not run from an already open terminal it wont do the open close so fast thing were you cant see it.
read hold
# Last but not least an exit command to close.
exit