Skip to content

Commit 71c11c9

Browse files
committed
swap Ys with Zs & vice versa, while being case insensitive
1 parent b78d1c8 commit 71c11c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

shell-pipelines/tr/script-02.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ 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+
tr 'yzYZ' 'zyZY' < text.txt

0 commit comments

Comments
 (0)