Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started