Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

cd to the directory called final that is located within my home directory. While viewing the file called mypasswd you notice that all of the

cd to the directory calledfinalthat is located within my home directory.

While viewing the file calledmypasswdyou notice that all of the references to the user's shells, the C shell, were entered in upper-case letters. That is not correct.

Create a sed command string that will convertONLYthe references to the user's shellCSHtocshwithin the file calledmypasswdand save the output to a new file callednewpasswdin your home directory.

Be Careful. There are other refernces to CSH in the file.

Which comand string will do this?

sed 's/CSH/csh/g' mypasswd > newpasswd

sed 's/CSH$/csh/g' mypasswd > newpasswd

sed 's/CSH$/csh/g' mypasswd > ~/newpasswd

sed 's/csh$/csh/g' mypasswd > ~/newpasswd

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

Step: 3

blur-text-image

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

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

SPECTRUM H . Structure: IUPAC name: 8 0 6 0 4 0 2 0 0 ppm

Answered: 1 week ago