eval $cmd1_with_opts | grep "$myfilter" | ssh someuser@somehost -e 'cat > /mnt/usbdrive/somefile.txt'