write a shell script to read user input as a string an in output it will reverse the string Ans: #!/bin/bash # Prompt the user to enter a string read -p "Enter a string to reverse: " input # Reverse the string and print it reversed=$(echo "$input"...

Markdown supported · ⌘↵ to post
No responses yet.