Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with commands 10 and 14 I am creating a script on a VM on the terminal using a mac. If you could

I need help with commands 10 and 14 I am creating a script on a VM on the terminal using a mac. If you could post the commands used for the steps that would be great.

Textbook: https://www.datascienceatthecommandline.com/

Assignment:

image text in transcribedimage text in transcribedimage text in transcribed

4) Create a folder with the name 'my_folder_hwe1 5) Without going into 'my_folder_hwe1', create a folder inside 'my_folder_hw01' with the name 'inner_folder" 6) Go inside'inner_folder' using one command 7) Create a text file 'file01.txt' (don't use vi or vim) and have the following text in it: This is the first line This is the second line This is the third line 8) Display the content of the file but with line numbers 9) Save the file with line numbers to another file with the name numbered.txt' 10) Concatenate the content of the second file 'numbered.txt' to the first file 'file01.txt' and save the first 4lines in 'third.txt' 11) Display the number of 1ines in the file 'third.txt 12) Display the number of lines that contain the substring 'rst' 10) Concatenate the content of the second file 'numbered.txt' to the first file 'file01.txt' and save the first4 lines in third.txt' 11) Display the number of lines in the file 'third.txt' 12) Display the number of lines that contain the substring 'rst' 13) Create a file 'fourth. txt' that contains the even numbers from 14) Delete all the files that start with the letter f 15) Move all the remaining files to the folder that your host machine 16) Go back to the home directory (using one command) 17) Delete the folder 'inner_folder' to 100 can access 18) Create a text file 'room.txt' that contains the following text (don't use vi or vim) Do not exit the room I am exiting the room Exit the room 19) Type the command that will display the number of lines that contain the 'whole/complete' word 'exit' (has to be case sensitive) 20) Type the command that will display the number of lines that contain the 'whole/complete' word 'exit' (ignore case sensitive) 21) Type the command that will display the number of lines that contain the word 'exit' (doesn't have to be a whole word,; has to be case sensitive) 22) Type the command that will display the number of lines that contain the word 'exit' (doesn't have to be a whole word; ignore case sensitive) 23) Type the command that will print/output the numbers from 2 to 100 that contain the number 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

When does the federal estate tax apply to life insurance proceeds?

Answered: 1 week ago

Question

* What is the importance of soil testing in civil engineering?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

Connect with your audience

Answered: 1 week ago