% head -10000 inputfile > smallfile % script smallfile