 |
HowTo: Reverse a String In Unix / Linux Shell?
Explains how to reverse a string under Linux or Unix like operating system using command, perl, and bash shell script. ... Python equivalent: echo foo | python -c 'import sys;print(sys.stdin.read().strip()[::-1])' python -c 'import sys;print(sys.stdin.rea
www.cyberciti.biz |
 |