#!/bin/bash for x in {1..9}; do for y in {1..9}; do if [ $x -ge $y ]; then echo -ne "$y*$x=$[$y*$x] " fi done echo done