Skip to content

Commit 89f252d

Browse files
committed
Complete tr script-02.sh exercise
1 parent a619cc6 commit 89f252d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell-pipelines/tr/script-02.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ set -euo pipefail
77
# so every Y should be a Z, and every Z should be a Y!
88
#
99
# TODO: Write a command to output the contents of text.txt with every Y and Z swapped (both upper and lower case).
10+
11+
cat text.txt | tr 'YyZz' 'ZzYy'

0 commit comments

Comments
 (0)