Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash ifelse

# you can use it if you want but it isn't very accurate
# as of best practices and such 

for DB in $( sudo mysql -e 'show databases' -s --skip-column-names ) ; 
	do 
		if [ $DB == 'information_schema' ] || [ $DB == 'performance_schema' ]; 
        	then echo 'warning' ; 
        else 
        	echo "success $DB";
        fi 
        
    done
Source by www.compciv.org #
 
PREVIOUS NEXT
Tagged: #bash #ifelse
ADD COMMENT
Topic
Name
4+2 =