Question: Sed Using cut and sed, change any users home folder from /home/username to /Users/username. Make sure that you only print the lines that were modified
Using cut and sed, change any users home folder from /home/username to /Users/username. Make sure that you only print the lines that were modified by sed (Hint: use the -n flag and the print option) Use the following as your input: postfix:x:89:89::/var/spool/postfix:/sbinologin chrony:x:998:996::/var/lib/chrony:/sbinologin charles:x:1001:1001:CHARLES:/home/charles:/bin/bash sshd: x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbinologin student:x:1000:1000:Student User: /home/student:/bin/bash Output: /Users/charles /Users/student
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
