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
Get step-by-step solutions from verified subject matter experts
