From 0804754a91a1c4233f3470b80409902749a8ac62 Mon Sep 17 00:00:00 2001 From: haider Date: Thu, 8 Nov 2018 02:59:09 +0500 Subject: [PATCH] Added 2 String Comparison Conditionals (#769) they check to see if the strings are equal or not... Just thought its an essential comparison that should be in the cheatsheet. --- bash.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash.md b/bash.md index 0ff7646a8..de229b586 100644 --- a/bash.md +++ b/bash.md @@ -321,6 +321,8 @@ Conditionals | Condition | Description | | --- | --- | +| `[ STRING = STRING ]` | Equal | +| `[ STRING != STRING ]` | Not Equal | | `[ -z STRING ]` | Empty string | | `[ -n STRING ]` | Not empty string | | --- | --- |