Linux Basics

94 / 107

Word Count Exercise

  1. Create a file myfile1.txt.

  2. Add the following content into it:

    What are you doing?
    Why is it so?
    What are you doing?
    What is this?
    Is this what you want?
    You should probably go.
    
  3. Display all the unique lines containing what (can be in uppercase or lowercase), and then save the file to myfile_updated.txt combining all the lines into a single line by replacing \n character with (space) character.

Expected answer- What are you doing? What is this? Is this what you want?

INSTRUCTIONS

Type cd ~ command to go to your home directory



Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...