Skip to content

Commit 93b6123

Browse files
committed
completed sort,uniq,head,tail exercise; completed tr command exercise
1 parent 6b65c82 commit 93b6123

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

shell-pipelines/tr/script-01.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ set -euo pipefail
66
# The author got feedback that they're using too many exclamation marks (!).
77
#
88
# TODO: Write a command to output the contents of text.txt with every exclamation mark (!) replaced with a full-stop (.).
9+
10+
cat text.txt | tr "!" "."

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"

shell-pipelines/tr/text.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Dear Yara,
22

33
Mz apologies for sending this response so late. As zou know, there's been a lot going on!
44

5-
Unfortunatelz I don't think I'll be able to make it to Yimbabwe, but but sounds amaying!
5+
Unfortunatelz I don't think I'll be able to make it to Yimbabwe, but sounds amaying!
66

77
Hope zou're doing well, and enjoz the trip!
88

0 commit comments

Comments
 (0)