Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Unix/Linux Tutorials | The Funniest Example with if else | by Durgasir
Play lesson

Unix/Linux Tutorial Videos - Unix/Linux Tutorials | The Funniest Example with if else | by Durgasir

5.0 (2)
28 learners

What you'll learn

This course includes

  • 44.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

The Funniest Example with if-else --------------------------------- if [ condition ] then action if condition is true else action if condition is false fi ---------------------------------------- if [ condition-1 ] then action if condition is true elif [ condition-2 ] then action if condition-2 is true elif [ condition-2 ] then action if condition-2 is true ... else action fi Demo Script: ------------ #! /bin/bash read -p "Enter Your Favourite Brand:" brand if [ $brand = "KF" ] then echo "It is Childrens Brand" elif [ $brand = "KO" ] then echo "It is not that much Kick" elif [ $brand = "RC" ] then echo "It is too light" elif [ $brand = "FO" ] then echo "Buy One Get One FREE"

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere