I am getting a stream of numbers in a pipe, and would like to perform some operations before passing them on to the next section, but I\'m a little lost about how I would go
Or you can pipe to expression to bc:
echo "1 2 3 4 5" | ( read line; for i in $line; do echo $i^2 | bc; done; echo )