bzed@hal:/tmp$ cat > foo 1 7 4 8 4 9 6 0 bzed@hal:/tmp$ cat foo | while read i j; do > echo $((${i} - 2)) ${j} > done -1 7 2 8 2 9 4 0 bzed@hal:/tmp$