How to reverse a string in unix?

echo “java” | rev

Category: UNIX Interview Questions.