Advertisement
Guest User

Untitled

a guest
Mar 17th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. bash-4.2$ A="string";B="string";[ -n ${A/$B} ]&&echo same
  2. same
  3.  
  4. bash-4.2$ A="wtf";B="string";[ -n ${A/$B} ]&&echo same
  5. same
  6.  
  7. bash-4.2$ A="string";B="lol";[ -n ${A/$B} ]&&echo same
  8. same
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement