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 Prove that L = {w | w = w^R,w ∈ {0, 1}*} is not regular (This is the language of binary palindromes) October 16, 2023 Shell script to reverse a given string September 16, 2023 To search a pattern using grep and fgrep command September 20, 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.
Prove that L = {w | w = w^R,w ∈ {0, 1}*} is not regular (This is the language of binary palindromes) October 16, 2023