DispersedNetUNIX Shell Programming

Practice and review

Multiple sed Commands: Exercise

Objective: Apply two substitutions to the same input.

Using the unchanged petchip dataset from Lesson 3, write one sed command that inserts a comma before the final three characters of each record, then replaces every colon with %. Use & for the matched trailing characters, not for changing the colons.

Sam (Big Boy)%cat%DSH%5/20/1990%800%Susan%Barr%47,823

This is a self-review exercise. Your text is never executed on the server, and no automatic credit or command-equivalence score is claimed.