Oracle
1Z0-409 · Question #98
The user smith is asked to replace all occurrences of the letter "e" with the letter "y" in file1.txt and save the output to fix.txt. Which command would let the user smith do so? (Choose all that…
The correct answer is C. sed s/e/y/g file1.txt > fix.txt E. sed s/e/y/g < file1.txt > ./fix.txt. See the full explanation below for the reasoning.
Question
The user smith is asked to replace all occurrences of the letter "e" with the letter "y" in file1.txt and save the output to fix.txt. Which command would let the user smith do so? (Choose all that apply.)
Options
- Ased s/e/y file1.txt > fix.txt
- Bsed /y/e/g file1.txt > fix.txt
- Csed s/e/y/g file1.txt > fix.txt
- Dsed /y/e/g file1.txt > ./fix.txt
- Esed s/e/y/g < file1.txt > ./fix.txt
How the community answered
(51 responses)- A2% (1)
- B6% (3)
- C80% (41)
- D12% (6)
Community Discussion
No community discussion yet for this question.