Wednesday, June 5, 2013

Bash shell to check if a string is existed in another string

The example script to check if 'new_user' of rabbitmq has been created:



Note: the double-quote used in USERS_LIST=`rabbitmqctl list_users`  is "`" , not "'"