Skip to content

Commit ddcdab8

Browse files
committed
fix: cat script 3 and sed script 1
1 parent 044d7f9 commit ddcdab8

2 files changed

Lines changed: 1 addition & 16 deletions

File tree

individual-shell-tools/cat/script-03.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,3 @@ set -euo pipefail
1010
# 2 I was tempted to take a bite of it.
1111
# 3 But this seemed like a bad idea...
1212
cat -n ../helper-files/helper-3.txt
13-
14-
#!/bin/bash
15-
16-
set -euo pipefail
17-
18-
# TODO: Write a command to output the contents of all of the files inside the helper-files directory to the terminal.
19-
# Make sure you are only calling `cat` once.
20-
#
21-
# The output of this command should be:
22-
# Once upon a time...
23-
# There was a house made of gingerbread.
24-
# It looked delicious.
25-
# I was tempted to take a bite of it.
26-
# But this seemed like a bad idea...
27-
cat ../helper-files/*.txt

individual-shell-tools/sed/script-01.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
55
# TODO: Write a command to output input.txt with all occurrences of the letter `i` replaced with `I`.
66
# The output should contain 11 lines.
77
# The first line of the output should be: "ThIs Is a sample fIle for experImentIng wIth sed.".
8-
sed "s/i/I/" input.txt
8+
sed "s/i/I/g" input.txt

0 commit comments

Comments
 (0)