#!/bin/bash awk '{ s = $1 + $2 p = $1 * $2 ch = (s == p) ? "E" : (s < p) ? "P" : "S" print ch }'