≡ Menu

bash if..else..fi

Bash String Comparison: Find Out IF a Variable Contains a Substring

How do I determine whether a variable called spath=”/srv/www/cyberciti.biz/https” contains a substring called “cyberciti.biz”?
[click to continue…]

Sysadmin because even developers need heroes!!!