#!/bin/sh # Small pipelines and substitutions of pipelines, as scripts write them. i=0 while [ $i -lt 1000 ]; do x=$(echo "name=$i" | cut -d= -f2) echo "$x" | cat >/dev/null i=$((i + 1)) done echo $x