a4 plot: ./p1 | dash plot.sh > p1.gif --- a5/p2 x=$(./p2) # x has output of ./p2 --- tr -d '\r' < infile > outfile # delete CR x=$(echo "$userinput" | tr -dc '[:alnum:]') # clean