Nix: Reverse a String
Reverse a string with the rev
command.
$ echo 'test' | rev
tset
It also works with files.
$ rev Procfile
br.amup/gifnoc C- amup cexe eldnub :bew
Via jwworth/til.
Reverse a string with the rev
command.
$ echo 'test' | rev
tset
It also works with files.
$ rev Procfile
br.amup/gifnoc C- amup cexe eldnub :bew
Via jwworth/til.
Leave a comment