I basically want to do this:
cat file | grep \'\' | sed \'s///g\'
without having to
This might work for you:
sed '//!d;s///g' file
Or
sed 's///gp;d' file