: The 'if-then-else' Statement 
: The 'if-then-else' Statement
by Bad Tutorials
Video Lecture 29 of 62
Not yet rated
Views: 717
Date Added: May 11, 2017

Lecture Description

In this tutorial you'll learn to use the 'if-then-else' statement to make decisions for you. The script made in the previous tutorial is extended to display an error message in the event of failure of the rename command.

Course Index

  1. Introduction
  2. Shell, Kernel, Terminal & More
  3. View System Date, Calender
  4. Create Files & Directories
  5. Text Files: Create, Merge & Play
  6. Rename & Delete Files & Directories
  7. Create Copies, Links to Files & Directories
  8. File Permissions
  9. See What's In Using 'ls'
  10. Change File Permissions Using 'chmod'
  11. Count Lines, Words & Characters Using 'wc'
  12. Sort
  13. Cut Through Your Files
  14. Convert & Copy Files With 'dd'
  15. Get Help, View Fancy Text & Reduce File Size
  16. Hello World!
  17. Use Commands In Your Scripts
  18. Shell Variables, Grab User Input Using 'read'
  19. Positional Parameters
  20. More On Positional Parameters
  21. Reverse Quotes Or Accent Graves
  22. Count The Number of Command Line Arguments Using $#
  23. Math On Integers Using 'expr'
  24. Operator Precedence
  25. Math On Real Numbers
  26. Escape Sequences
  27. Do Cool Things With 'tput'
  28. 'if-then' Statement in Action
  29. : The 'if-then-else' Statement
  30. Run Checks on Numbers
  31. Run Checks On Files
  32. Append Text to a File Through Shell Script
  33. Run Checks On Strings
  34. The 'AND' Logical Operator
  35. Count The Number of Characters in User's Input in Your Script
  36. The 'OR' Logical Operator
  37. The 'case' Statement
  38. Another Date With 'case' Statement
  39. The 'while' Loop
  40. The 'until' Loop
  41. The 'for' Loop
  42. Rant & Little Work
  43. Search Patterns Using 'grep'
  44. The 'passwd' File Explained
  45. The Internal Field Separator
  46. 'passwd' File Revisited
  47. Reading From a File
  48. Sleep while you are at work
  49. Count the number of words & sentences in a text file without using 'wc'
  50. Fetch & Redirect Man Pages of commands using 'for loop'
  51. Nested Loops
  52. The 'break' Statement
  53. The 'continue' Statement
  54. More on Metacharacters
  55. Adding & Removing Users
  56. Know when users log in Part One
  57. : Know when users log in Part Two
  58. Know when users log in Final Part
  59. Communicate with other users using 'write'
  60. Create Your Own Commands Using Functions
  61. Executing Multiple Scripts
  62. Conclusion

Course Description

This series is a collection of 62 video tutorials on UNIX/Linux Shell Programming. The tutorials are designed to benefit beginners but experienced shell programmers may also learn a few tricks of the trade in the course.


There are no comments. Be the first to post one.
  Post comment as a guest user.
Click to login or register:
Your name:
Your email:
(will not appear)
Your comment:
(max. 1000 characters)
Are you human? (Sorry)