Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Created December 11, 2023 19:25
Show Gist options
  • Save yordanoweb/8637a55e61351615ddab28635f0557b4 to your computer and use it in GitHub Desktop.
Save yordanoweb/8637a55e61351615ddab28635f0557b4 to your computer and use it in GitHub Desktop.
Compare two strings from command line
[ "$string1" = "$string2" ] && echo OK || echo NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment