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 C program that creates a child process to read commands from the standard input July 31, 2023 C programs that simulate the following cp Unix commands October 5, 2023 C program that takes one or more file or directory names as command line input and reports the following information on the file: i)File type ii)Number of links iii)Read, write and execute permissions iv)Time of last access October 5, 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.
C program that takes one or more file or directory names as command line input and reports the following information on the file: i)File type ii)Number of links iii)Read, write and execute permissions iv)Time of last access October 5, 2023