Skip to content
KnowledgeCity

Operators

Discover comparisons in Bash, how strings are tested, and how math operators function
Preview the first lesson free — get full access to all 3 lessons.
Course: On-Demand
Advanced Provider Jeremy Kurtz  3 Lessons ·  22m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

This course will explore comparisons and operators in Bash. Learn how Bash handles comparisons and uses mathematical operations. Apply math, equality, and comparison operators in a Bash script.

What You'll Learn

  • Understand how comparisons exist and are handled in Bash
  • Compare strings by testing them in Bash
  • Apply comparison operators in a Bash script
  • Use math operators to perform mathematical operations in Bash
  • Apply equality operators within Bash scripts

Key Takeaways

  • Bash provides operators for performing comparisons within scripts.
  • Strings in Bash can be tested in order to compare them.
  • Bash supports math operators that carry out mathematical operations.
  • Math, equality, and comparison operators can be applied directly in a Bash script.

Frequently Asked Questions

What does this course cover?

It explores comparisons and operators in Bash, including how Bash handles comparisons and uses mathematical operations, and how to apply math, equality, and comparison operators in a Bash script.

What lessons are included in this course?

The course includes three lessons: Comparison Operators, Math Operators Part 1, and Math Operators Part 2.

What skills will I gain from this course?

The course covers skills including Bash scripting, Linux scripting, logical operators, operands, operators in C and C++, and shell script.

Will I learn how strings are compared in Bash?

Yes, one of the learning objectives is to learn how strings are tested to compare in Bash.