Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rot13/solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ One possible approach is to use the `tr` command that translates a set of charac
Also `sed` has the same ability with the `y` command

```echo cypher me | sed 'y/abcdefghijklmnopqrstuvwxyz/nopqrstuvwxyzabcdefghijklm/'```

Using the **Character Classes** is possible to avoid writing all the letters of the alphabet and it is also possible to manage easly the case of the character!

```bash
echo cypher ME | tr a-zA-Z n-za-mN-ZA-N
```