macOS ◆ xterm-256color ◆ bash 1205 views

What dark magic is this?

🆒 ➡ If you switch ; for \Gyou get the results back VERTICALLY!


watch -n 1 -x \
  docker-compose exec mysql bash -c '\
    echo "SELECT * FROM ORDERS ORDER BY CREATE_TS DESC LIMIT 5\G" | \
    mysql -u root -p$MYSQL_ROOT_PASSWORD demo'