How to print a reverted string in the Ubuntu Linux terminal

Опубликовано: 12 Октябрь 2024
на канале: PaBlo Tech
63
0

It's sometimes useful to revert a string, e.g. for finding palindromes in a text or only just for #fun .
In #bash you ca do this with the command "rev" which is part of th util-linux package.

$~ echo "this is a test" | rev