forked from chrisparnin/EngineeringBasics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps.yml
40 lines (37 loc) · 1.7 KB
/
steps.yml
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
setup:
local: {}
verify: opunit verify local -c ../test/opunit.yml
clean: >
rm -f .bash_prompt .functions checker.sh random.txt zeros.txt server.sh
Shells.md:
steps:
# Custom prompt
- selectAsFile: "Create a local configuration file named => .bash_prompt"
- selectAndRun: "Then enable your new prompt with"
# Data wrangling
- selectAndRun: "Download data with"
- selectAndRun: Create a directory to store the tar file contents
- selectAndRun: "Extract the archive and verify csv files exist inside the product-hunt folder"
- selectAndRun: List the column headers inside the \"users.*.csv\" file
- selectAndRun: Extract a column of text from a file, using
# heredoc
- selectAndRun: until a delimiter string is reached
- selectAndRun: Load the defined function. Then we can see which command you run the most.
- selectAndRun: Count the number of words and characters in text
# Bash Scripting
- selectAsFile: Save this in a file called => checker.sh
- selectAndRun: Make sure the script file is executable
- selectAndRun:
select: Run the script
expectblock: You should see output like this
# dd
- selectAndRun: Create a 1MB file with zeros.
- selectAndRun: Create a 20K file with random bytes.
# expect
- selectAndRun: By using expect, you can create scripts that automatically response to prompt inputs
# traps
- selectAsFile:
select: "Save the following in 'server.sh' and make it executable => server.sh"
permission: 'x'
- selectAndServe: This will run a simple bash server that you can send commands to over the network.
- selectAndRun: "In a new terminal window, run:"