#!/bin/sh n=1000 rm -f foo.tmp while test $n != 0 do echo "tag_$n item_$n on" >>foo.tmp n=`expr $n - 1` done dialog \ --backtitle "Back Title" \ --no-shadow \ --separate-output \ --checklist "Title"\ 19 60 12 \ `cat foo.tmp` 2> output_file