Shell script to wish according to day time Post author:Educate Post published:September 18, 2023 Post category:Shell Script Post comments:0 Comments clear hours=`date|cut -c12-13` if [ $hours -le 12 ] then echo "Good Morning" else if [ $hours -le 16 ] then echo "Good Afternoon" elif [ $hours -le 20 ] then echo "Good Evening" else echo "Good Night" fi fi You Might Also Like Shell script to print all prime numbers from 1 to n July 18, 2023 Shell script to create a simple calculator that performs basic arithmetic operations September 16, 2023 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 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
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