Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.2$ A="string";B="string";[ -n ${A/$B} ]&&echo same
- same
- bash-4.2$ A="wtf";B="string";[ -n ${A/$B} ]&&echo same
- same
- bash-4.2$ A="string";B="lol";[ -n ${A/$B} ]&&echo same
- same
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement