find /some/directory -maxdepth 1 -type f -exec cmd option {} \; > results.out
find . -type f -name "*.java" -print | xargs grep "window"
cat * | awk '{print $2}'
netstat -anp46 | grep LISTEN | grep <processid>
test.sh &> /tmp/log