> > You could always save the output to a file and then use cat > e.g. locate so > t.txt > cat t.txt | grep whatever or could do: locate |tee filename.dat which would send to you screen (stdout) and a file at the same time followed by. grep "stuff" filename.dat maybe even locate |grep stuff >file_name