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 ট্র্যাকে স্ট্রিং উল্টানো অনুশীলনীর অন্য অ্যাপ্রোচগুলো

এই অনুশীলনীটি আমাদের কমিউনিটি যেভাবে অন্য ভাবেও সমাধান করেছে