How to Compare Strings in Bash

Posted by linuxize on May 4, 2019 10:54 PM EDT
linuxize.com; By linuxize
Mail this story
Print this story

When writing Bash scripts you will often need to compare two strings to check if they are equal or not. Two strings are equal when they have the same length and contain the same sequence of characters.

This tutorial describes how to compare strings in Bash.

Full Story

  Nav
» Read more about: Groups: GNU, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.