The transform command

The transform command is used to replace any letter or a number with another, for example, capitalizing letters or transforming numbers into different numbers.

It works like the tr command.

You can use it like this:

$ sed 'y/abc/ABC/' myfile  

The transformation applies to the entire stream and can't be limited.

Get Mastering Linux Shell Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.