List of questions
Related questions
Question 273 - XK0-005 discussion
A file called testfile has both uppercase and lowercase letters:
$ cat testfile
ABCDEfgH
IJKLmnoPQ
abcdefgH
ijklLMNopq
A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase. Which of the following commands will achieve this task?
A.
tr '(A-Z}' '{a-z}' < testfile > uppercase
B.
echo testfile | tr '[Z-A]' '[z-a]' < testfile > uppercase
C.
cat testfile | tr '{z-a)' '{Z-A}' < testfile > uppercase
D.
tr '[a-z]' '[A-Z]' < testfile > uppercase
Your answer:
0 comments
Sorted by
Leave a comment first