Answer to Question #174498 in C for Kwame Hay

Question #174498

Question 3

Write a shell script that allows a user to write a nursery rhyme directly from the CLI and have the rhyme stored in a text file.

Your script should then replace all vowels in the rhyme with the letter “t”

Your script should also count the number of lines in the rhyme

Your script should make a copy of the text file and append all the characters of the first file into the second file into it.

Then delete all the contents of the first file.

[9 marks]

4

B) Give four working examples of how to use grep in shell scripting,

[6 marks]

C) list all hidden files in the present working directory showing all hidden files and in the long format

[6 marks]

D) Explain the difference between ls -l > mylisting.txt and ls -l >> mylisting.txt

[4 marks]


1
Expert's answer
2021-04-04T05:19:47-0400
A) Script to store a nursery rhyme in the text file called rhyme.txt  $] cat > rhyme  Hickory Dickory Dock The mouse ran up the clock

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS