Shell script to reverse a given string Post author:Educate Post published:September 16, 2023 Post category:Shell Script Post comments:0 Comments clear echo "enter the string" read str len=`expr $str | wc -c` len=`expr $len - 1` while [ $len -gt 0 ] do ch=`echo $str | cut -c $len` echo -n $ch len=`expr $len - 1` done You Might Also Like Shell script to create a simple calculator that performs basic arithmetic operations September 16, 2023 Shell program to search a pattern in a file July 29, 2023 A menu driven shell script for Copy a file, Remove a file, Move a file July 29, 2023 Leave a Reply Cancel replyCommentEnter your name or username to comment Enter your email address to comment Enter your website URL (optional) Save my name, email, and website in this browser for the next time I comment.
Shell script to create a simple calculator that performs basic arithmetic operations September 16, 2023