Shell Script Practical Interview Questions
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"...
ashwini23.hashnode.dev4 min read