Skip to content

Commit 36a2307

Browse files
authored
bash for beginners exercise files
1 parent 6b78ccf commit 36a2307

File tree

16 files changed

+255
-4
lines changed

16 files changed

+255
-4
lines changed

.devcontainer/devcontainer.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
3-
"features": {
4-
"ghcr.io/devcontainers/features/azure-cli:1": {}
2+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
3+
"features": {
4+
"ghcr.io/devcontainers/features/azure-cli:1": {}
5+
},
6+
"postCreateCommand": "bash -i -c '(echo y && echo y) | sudo unminimize'"
57
}
6-
}
8+
9+
10+
// sudo apt install man-db manpages-posix
11+
// sudo apt install file

modifying-file-permissions/newFile.txt

Whitespace-only changes.

modifying-file-permissions/octal.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
owner group others
2+
r w x r w x r w x
3+
(4)(2)(1) (4)(2)(1) (4)(2)(1)
4+
5+
example: chmod 664 script.sh

modifying-file-permissions/script.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
echo "Thank you for watching, Bash for Beginners!"

redirection-and-pipelines/error.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ls: cannot access './dir': No such file or directory

redirection-and-pipelines/output.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
total 8
2+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 18:03 error.txt
3+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 18:10 output.txt
4+
-rw-rw-rw- 1 vscode vscode 415 Jan 17 17:37 part1.txt
5+
-rw-rw-rw- 1 vscode vscode 262 Jan 17 17:37 part2.txt
6+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 17:54 part3.txt
7+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 17:56 part4.txt

redirection-and-pipelines/output2.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
total 16
2+
-rw-rw-rw- 1 vscode vscode 53 Jan 17 18:12 error.txt
3+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 18:15 output2.txt
4+
-rw-rw-rw- 1 vscode vscode 333 Jan 17 18:10 output.txt
5+
-rw-rw-rw- 1 vscode vscode 415 Jan 17 17:37 part1.txt
6+
-rw-rw-rw- 1 vscode vscode 262 Jan 17 17:37 part2.txt
7+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 17:54 part3.txt
8+
-rw-rw-rw- 1 vscode vscode 0 Jan 17 17:56 part4.txt
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
2+
Mauris pharetra et ultrices neque ornare aenean euismod. Adipiscing enim eu turpis egestas pretium aenean pharetra magna ac. Nibh nisl condimentum id venenatis a condimentum. Interdum velit euismod in pellentesque massa placerat. Ac feugiat sed lectus vestibulum mattis ullamcorper velit.
3+
Libero justo laoreet sit amet cursus sit amet dictum sit. Pharetra vel turpis nunc eget lorem dolor sed.
4+
Ultrices neque ornare aenean euismod elementum nisi quis eleifend quam. Laoreet id donec ultrices tincidunt.
5+
Pulvinar sapien et ligula ullamcorper malesuada.

redirection-and-pipelines/part1.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
2+
Mauris pharetra et ultrices neque ornare aenean euismod. Adipiscing enim eu turpis egestas pretium aenean pharetra magna ac. Nibh nisl condimentum id venenatis a condimentum. Interdum velit euismod in pellentesque massa placerat. Ac feugiat sed lectus vestibulum mattis ullamcorper velit.

redirection-and-pipelines/part2.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Libero justo laoreet sit amet cursus sit amet dictum sit. Pharetra vel turpis nunc eget lorem dolor sed.
2+
Ultrices neque ornare aenean euismod elementum nisi quis eleifend quam. Laoreet id donec ultrices tincidunt.
3+
Pulvinar sapien et ligula ullamcorper malesuada.

redirection-and-pipelines/part3.txt

Whitespace-only changes.

redirection-and-pipelines/part4.txt

Whitespace-only changes.

viewing-files/fake001.log

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
230.247.88.202 - wisozk3263 [12/Jan/2023:17:30:13 +0000] "GET /enable HTTP/1.1" 416 9289
2+
224.18.254.214 - - [12/Jan/2023:17:30:13 +0000] "PATCH /architectures/visionary/world-class HTTP/2.0" 502 13917
3+
187.144.131.137 - - [12/Jan/2023:17:30:13 +0000] "PUT /initiatives/empower/web-readiness HTTP/1.0" 400 6392
4+
126.168.148.43 - - [12/Jan/2023:17:30:13 +0000] "GET /enable/plug-and-play/virtual HTTP/2.0" 200 15144
5+
87.13.63.72 - - [12/Jan/2023:17:30:13 +0000] "PUT /e-commerce/bricks-and-clicks HTTP/1.0" 404 17162
6+
20.160.112.213 - kuhn7048 [12/Jan/2023:17:30:13 +0000] "DELETE /real-time/evolve HTTP/2.0" 201 24884
7+
63.163.147.120 - - [12/Jan/2023:17:30:13 +0000] "POST /unleash HTTP/1.1" 401 28144
8+
105.212.181.136 - stiedemann3217 [12/Jan/2023:17:30:13 +0000] "GET /extensible/transition/cutting-edge HTTP/1.0" 205 12924
9+
167.133.191.114 - hettinger1052 [12/Jan/2023:17:30:13 +0000] "PUT /strategize/seize HTTP/1.0" 503 7855
10+
175.124.13.207 - - [12/Jan/2023:17:30:13 +0000] "PATCH /cultivate/target/unleash/infomediaries HTTP/1.0" 204 7910
11+
140.162.10.148 - oreilly6845 [12/Jan/2023:17:30:13 +0000] "GET /syndicate/recontextualize HTTP/1.0" 503 114
12+
96.148.244.179 - - [12/Jan/2023:17:30:13 +0000] "DELETE /ubiquitous HTTP/1.1" 100 19021
13+
243.148.63.145 - windler7814 [12/Jan/2023:17:30:13 +0000] "DELETE /grow/e-business/distributed/architect HTTP/1.1" 403 25433
14+
217.130.31.22 - - [12/Jan/2023:17:30:13 +0000] "HEAD /e-services/enhance/methodologies HTTP/2.0" 100 15001
15+
92.250.129.132 - - [12/Jan/2023:17:30:13 +0000] "DELETE /reintermediate HTTP/1.1" 400 6823
16+
64.25.106.63 - harris6835 [12/Jan/2023:17:30:13 +0000] "PATCH /optimize/revolutionize HTTP/1.1" 504 9305
17+
120.15.92.29 - - [12/Jan/2023:17:30:13 +0000] "GET /end-to-end/systems/user-centric/integrate HTTP/2.0" 504 13518
18+
193.248.210.218 - - [12/Jan/2023:17:30:13 +0000] "HEAD /streamline/paradigms HTTP/1.1" 301 17454
19+
146.248.54.231 - - [12/Jan/2023:17:30:13 +0000] "PATCH /rich/world-class/compelling HTTP/2.0" 302 3984
20+
45.54.245.186 - - [12/Jan/2023:17:30:13 +0000] "PATCH /global/out-of-the-box HTTP/1.1" 503 27460
21+
8.229.224.131 - - [12/Jan/2023:17:30:13 +0000] "DELETE /maximize/niches HTTP/1.0" 404 18168
22+
62.123.61.19 - - [12/Jan/2023:17:30:13 +0000] "DELETE /frictionless/viral/real-time/synthesize HTTP/2.0" 501 5288
23+
161.112.148.117 - - [12/Jan/2023:17:30:13 +0000] "PUT /portals HTTP/1.0" 504 29580
24+
10.120.164.165 - - [12/Jan/2023:17:30:13 +0000] "GET /bandwidth/cutting-edge HTTP/1.0" 302 20776
25+
127.95.12.56 - homenick7785 [12/Jan/2023:17:30:13 +0000] "GET /cutting-edge/benchmark/b2c HTTP/1.1" 100 8381
26+
91.118.225.74 - rippin4750 [12/Jan/2023:17:30:13 +0000] "DELETE /one-to-one/mesh/orchestrate/communities HTTP/2.0" 201 18639
27+
147.11.185.27 - leannon6748 [12/Jan/2023:17:30:13 +0000] "DELETE /transition/orchestrate HTTP/2.0" 405 23798
28+
107.18.102.67 - - [12/Jan/2023:17:30:13 +0000] "HEAD /customized/web-readiness HTTP/2.0" 416 16969
29+
17.37.158.51 - grant5785 [12/Jan/2023:17:30:13 +0000] "PUT /real-time HTTP/1.1" 304 25843
30+
22.33.73.161 - - [12/Jan/2023:17:30:13 +0000] "POST /transition/channels HTTP/2.0" 203 28559
31+
28.8.86.99 - klein4855 [12/Jan/2023:17:30:13 +0000] "PATCH /iterate/reintermediate/visualize HTTP/1.0" 200 28841
32+
182.61.254.77 - - [12/Jan/2023:17:30:13 +0000] "HEAD /virtual/e-enable/user-centric/end-to-end HTTP/1.1" 416 28334
33+
4.141.113.34 - wilkinson7258 [12/Jan/2023:17:30:13 +0000] "POST /proactive HTTP/2.0" 406 986
34+
68.123.162.225 - - [12/Jan/2023:17:30:13 +0000] "GET /e-services HTTP/2.0" 204 20246
35+
70.162.10.33 - robel4856 [12/Jan/2023:17:30:13 +0000] "PUT /disintermediate/engage/initiatives/synthesize HTTP/1.0" 504 11908
36+
150.30.28.119 - hand3064 [12/Jan/2023:17:30:13 +0000] "HEAD /bricks-and-clicks/aggregate/brand/synthesize HTTP/1.0" 403 8788
37+
217.202.205.82 - rau1313 [12/Jan/2023:17:30:13 +0000] "GET /redefine HTTP/1.0" 502 3995
38+
117.192.253.253 - - [12/Jan/2023:17:30:13 +0000] "DELETE /integrated/disintermediate/extensible HTTP/1.0" 416 954
39+
138.104.43.189 - - [12/Jan/2023:17:30:13 +0000] "GET /deploy/clicks-and-mortar/e-business/magnetic HTTP/2.0" 501 28115
40+
214.47.72.110 - cummerata7142 [12/Jan/2023:17:30:13 +0000] "PUT /supply-chains/platforms HTTP/1.0" 406 11849
41+
176.76.228.182 - senger4688 [12/Jan/2023:17:30:13 +0000] "DELETE /enhance/open-source/optimize/deliverables HTTP/1.0" 501 13068
42+
220.184.179.140 - - [12/Jan/2023:17:30:13 +0000] "DELETE /killer/deploy/plug-and-play HTTP/1.1" 403 19025
43+
215.213.227.82 - keeling7263 [12/Jan/2023:17:30:13 +0000] "PUT /action-items HTTP/1.1" 201 26241
44+
116.203.191.64 - - [12/Jan/2023:17:30:13 +0000] "PUT /technologies/sticky/one-to-one HTTP/2.0" 406 22719
45+
58.66.250.47 - - [12/Jan/2023:17:30:13 +0000] "PATCH /disintermediate/strategic/interactive HTTP/2.0" 403 1674
46+
3.85.49.181 - - [12/Jan/2023:17:30:13 +0000] "GET /value-added/value-added/magnetic HTTP/1.1" 200 14847
47+
82.169.199.61 - parker4546 [12/Jan/2023:17:30:13 +0000] "DELETE /e-markets/benchmark/24%2f7 HTTP/2.0" 500 18075
48+
78.176.33.102 - - [12/Jan/2023:17:30:13 +0000] "HEAD /interfaces HTTP/1.1" 200 18248
49+
130.3.208.89 - considine4756 [12/Jan/2023:17:30:13 +0000] "PATCH /brand HTTP/2.0" 200 5621
50+
71.41.228.174 - goyette8088 [12/Jan/2023:17:30:13 +0000] "PUT /expedite/impactful/envisioneer HTTP/1.1" 503 3367
51+
218.173.254.166 - - [12/Jan/2023:17:30:13 +0000] "POST /intuitive/infrastructures HTTP/1.0" 200 17878
52+
219.52.157.3 - - [12/Jan/2023:17:30:13 +0000] "DELETE /optimize/systems/brand/out-of-the-box HTTP/1.1" 503 5719
53+
50.68.10.79 - brown5050 [12/Jan/2023:17:30:13 +0000] "DELETE /methodologies/mindshare HTTP/1.1" 200 2521
54+
164.128.156.100 - lind7228 [12/Jan/2023:17:30:13 +0000] "HEAD /implement HTTP/1.0" 405 19465
55+
94.48.83.64 - metz6057 [12/Jan/2023:17:30:13 +0000] "PUT /global/vortals HTTP/1.1" 203 2087
56+
101.40.104.134 - - [12/Jan/2023:17:30:13 +0000] "POST /channels/seamless/24%2f365 HTTP/1.0" 504 18276
57+
108.194.116.114 - - [12/Jan/2023:17:30:13 +0000] "PATCH /innovate/exploit/e-tailers/whiteboard HTTP/1.0" 504 27362
58+
146.148.194.241 - kohler5522 [12/Jan/2023:17:30:13 +0000] "PUT /disintermediate/models/strategic/expedite HTTP/1.0" 503 21298
59+
99.192.254.103 - sipes2056 [12/Jan/2023:17:30:13 +0000] "HEAD /architect/channels HTTP/1.1" 502 9621
60+
7.253.10.205 - bruen1611 [12/Jan/2023:17:30:13 +0000] "DELETE /networks/wireless/efficient HTTP/2.0" 400 6889
61+
234.211.131.3 - schowalter5315 [12/Jan/2023:17:30:13 +0000] "PATCH /frictionless HTTP/1.0" 301 2007
62+
5.247.243.51 - - [12/Jan/2023:17:30:13 +0000] "POST /e-business/seize HTTP/1.1" 416 10796
63+
238.18.142.202 - harvey7870 [12/Jan/2023:17:30:13 +0000] "PATCH /drive HTTP/1.0" 304 28211
64+
38.45.215.222 - jerde7481 [12/Jan/2023:17:30:13 +0000] "HEAD /grow HTTP/2.0" 400 26803
65+
76.238.187.150 - - [12/Jan/2023:17:30:13 +0000] "DELETE /holistic/leverage/benchmark HTTP/1.1" 203 25981
66+
124.193.197.173 - tillman3753 [12/Jan/2023:17:30:13 +0000] "POST /intuitive/utilize/scalable/b2b HTTP/1.1" 205 21486
67+
145.55.215.243 - - [12/Jan/2023:17:30:13 +0000] "PATCH /extend/seize/b2c HTTP/1.0" 401 8638
68+
160.225.250.109 - - [12/Jan/2023:17:30:13 +0000] "PUT /monetize/enhance HTTP/2.0" 405 14867
69+
133.80.40.127 - stroman5551 [12/Jan/2023:17:30:13 +0000] "HEAD /open-source/evolve/transform/schemas HTTP/1.0" 203 5438
70+
139.209.49.166 - - [12/Jan/2023:17:30:13 +0000] "PATCH /b2c/benchmark/rich HTTP/2.0" 203 3439
71+
123.77.114.71 - - [12/Jan/2023:17:30:13 +0000] "GET /generate/roi/vortals/exploit HTTP/1.0" 301 907
72+
50.138.41.127 - - [12/Jan/2023:17:30:13 +0000] "POST /b2c HTTP/2.0" 504 9058
73+
210.59.179.248 - - [12/Jan/2023:17:30:13 +0000] "POST /harness/architectures HTTP/1.1" 502 10196
74+
29.169.205.183 - cartwright3813 [12/Jan/2023:17:30:13 +0000] "PATCH /e-business/dot-com/open-source HTTP/2.0" 504 28142
75+
163.253.164.80 - - [12/Jan/2023:17:30:13 +0000] "PATCH /customized/web-readiness/target HTTP/2.0" 405 4847
76+
153.12.83.29 - - [12/Jan/2023:17:30:13 +0000] "GET /empower/orchestrate/action-items/solutions HTTP/2.0" 204 22480
77+
119.19.133.41 - metz5025 [12/Jan/2023:17:30:13 +0000] "PUT /unleash HTTP/1.0" 503 19788
78+
52.209.166.7 - - [12/Jan/2023:17:30:13 +0000] "PATCH /repurpose/channels/engage HTTP/2.0" 203 2885
79+
86.226.56.232 - - [12/Jan/2023:17:30:13 +0000] "POST /24%2f365/incubate/markets/whiteboard HTTP/2.0" 501 22302
80+
39.20.241.142 - - [12/Jan/2023:17:30:13 +0000] "POST /initiatives/e-commerce/transparent/streamline HTTP/1.1" 304 9086
81+
232.46.175.98 - dare2814 [12/Jan/2023:17:30:13 +0000] "PATCH /grow HTTP/1.0" 201 6684
82+
197.150.78.142 - simonis6260 [12/Jan/2023:17:30:13 +0000] "POST /incubate HTTP/2.0" 406 1659
83+
119.157.103.178 - - [12/Jan/2023:17:30:13 +0000] "PATCH /interfaces HTTP/1.1" 503 394
84+
48.165.55.234 - mitchell6556 [12/Jan/2023:17:30:13 +0000] "POST /reinvent HTTP/2.0" 504 628
85+
53.149.125.254 - cummings7223 [12/Jan/2023:17:30:13 +0000] "PUT /reinvent/strategize/wireless/visualize HTTP/1.1" 203 28521
86+
249.16.209.71 - - [12/Jan/2023:17:30:13 +0000] "GET /roi/exploit HTTP/1.0" 404 2148
87+
69.117.231.32 - damore8572 [12/Jan/2023:17:30:13 +0000] "DELETE /iterate/monetize/partnerships HTTP/1.1" 406 17008
88+
101.112.114.96 - - [12/Jan/2023:17:30:13 +0000] "GET /synergistic/synergize/frictionless/out-of-the-box HTTP/2.0" 401 11107
89+
67.7.229.158 - - [12/Jan/2023:17:30:13 +0000] "DELETE /virtual/holistic/metrics HTTP/1.1" 401 6960
90+
164.15.241.96 - nienow5718 [12/Jan/2023:17:30:13 +0000] "DELETE /extensible/functionalities/customized/repurpose HTTP/1.0" 416 17726
91+
110.117.184.85 - - [12/Jan/2023:17:30:13 +0000] "DELETE /e-commerce HTTP/1.1" 401 23705
92+
239.250.59.159 - - [12/Jan/2023:17:30:13 +0000] "POST /collaborative/channels/repurpose/generate HTTP/1.1" 504 11841
93+
190.216.219.29 - lowe5351 [12/Jan/2023:17:30:13 +0000] "DELETE /web-readiness HTTP/1.0" 416 26779
94+
177.180.199.178 - rutherford6407 [12/Jan/2023:17:30:13 +0000] "HEAD /ubiquitous HTTP/1.0" 205 28852
95+
34.78.206.127 - - [12/Jan/2023:17:30:13 +0000] "PUT /enhance/benchmark HTTP/1.0" 204 6700
96+
44.86.41.179 - - [12/Jan/2023:17:30:13 +0000] "HEAD /niches/magnetic/intuitive/back-end HTTP/1.0" 404 6116
97+
223.124.215.118 - - [12/Jan/2023:17:30:13 +0000] "POST /utilize HTTP/1.1" 403 21607
98+
207.89.174.93 - - [12/Jan/2023:17:30:13 +0000] "POST /maximize/incentivize HTTP/2.0" 504 3329
99+
162.115.131.142 - - [12/Jan/2023:17:30:13 +0000] "PATCH /enable/extend/proactive/recontextualize HTTP/1.1" 302 19678
100+
250.5.90.202 - moen2373 [12/Jan/2023:17:30:13 +0000] "PUT /24%2f7/24%2f7/24%2f365 HTTP/1.0" 406 23470

0 commit comments

Comments
 (0)