-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmakeExampleFiles.sh
More file actions
37 lines (25 loc) · 1017 Bytes
/
Copy pathmakeExampleFiles.sh
File metadata and controls
37 lines (25 loc) · 1017 Bytes
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/bash
# Creates the h1 header for the markdown file and creates the markdown file itself
echo "# Submodule Examples" >> submodulesExample.md
# Creates a loop over the numeric values from 1 - 17
for i in {1..19};
# Starts the for loop block
do
# Adds a subheading to the file
echo "## Step ${i}" >> submodulesExample.md;
# Adds the image reference to the file
echo '!'"[submoduleExample${i}](img/submoduleStep${i}.png \"Submodules Example Step ${i}.\")" >> submodulesExample.md;
# Ends the loop
done
# Creates the h1 header for the markdown file and creates the markdown file itself
echo "# When All Else Fails...Blow it up"'!' >> gitResetExample.md
# Creates a loop over the numeric values from 1 - 17
for i in {1..17};
# Starts the for loop block
do
# Adds a subheading to the file
echo "## Step ${i}" >> gitResetExample.md;
# Adds the image reference to the file
echo '!'"[resetExample${i}](img/resetStep${i}.png \"Git Reset Example Step ${i}.\")" >> gitResetExample.md;
# Ends the loop
done