Home > bash, linux > bash for loop through text

bash for loop through text

# for i in `echo “table1 table2 table3″`; do mysql -uusername -ppassword database_name -e “SELECT COUNT(*) FROM $i”;done;

Categories: bash, linux
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.