≡ Menu

sh substring

Bash Substring Verification

How can I find out whether a variable called $vech contains a substring called 'car' under bash?

vech='car bus bike rail airplane'

[click to continue…]