External tools

स्ट्रिंग को उलटिए
स्ट्रिंग को उलटिए Bash में

The GNU Linux core utilities contain lots of goodies. To reverse strings, use rev.

$ echo "Hello, World!" | rev
!dlroW ,olleH

rev also works with files to reverse each line.

$ printf '%s\n' one two three > myfile
$ rev myfile
eno
owt
eerht

There are other ways to do this, but none are a simple as rev.

grep -o . <<< "$string" | tac | paste -s -d ''
perl -lne 'print scalar reverse' <<< "$string"
# etc
23 सितंबर 2026 · क्या यह आपके काम आया?

Bash में स्ट्रिंग को उलटिए के लिए अन्य अप्रोच

हमारे समुदाय द्वारा इस अभ्यास को हल करने के और तरीके