Skip to content

Commit 40180ad

Browse files
committed
Complete sed script-01: replace i with I globally
1 parent cfc4ec6 commit 40180ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
set -euo pipefail
44

55
# TODO: Write a command to output input.txt with all occurrences of the letter `i` replaced with `I`.
6+
sed 's/i/I/g' input.txt
67
# The output should contain 11 lines.
78
# The first line of the output should be: "ThIs Is a sample fIle for experImentIng wIth sed.".

0 commit comments

Comments
 (0)