tags:

views:

23

answers:

1

The following command "prints" the correct mysql commands. But I want to "execute" them :)

mysqlshow -uroot -pPassWord | awk '{print "mysqlshow -uroot -pPassWord --count", $2;}

mysqlshow -uroot -pPassWord --count world
mysqlshow -uroot -pPassWord --count zabbix
+2  A: 
mysqlshow -uroot -pPassWord | awk '{print "mysqlshow -uroot -pPassWord --count", $2;} | sh
Paul Tomblin
Thanks. I tried -exec and xargs
shantanuo