nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Bash Find Out IF a Variable Contains a Substring

Posted: 02 Aug 2020 04:23 AM PDT


{Updated} How do I determine whether a variable called spath='/srv/www/cyberciti.biz/https' contains a substring called 'cyberciti.biz'? How can I check if a string contains a Substring in Bash scripting?

The post Bash Find Out IF a Variable Contains a Substring appeared first on nixCraft.