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 that accepts a filename, starting and ending line numbers as arguments and displays all the lines between the given line numbers September 15, 2023 A shell program check file permissions and output the same July 29, 2023 vi editor October 6, 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 that accepts a filename, starting and ending line numbers as arguments and displays all the lines between the given line numbers September 15, 2023