I have a Canon camera mounted with
gphotofs and I'm trying to essentially do an
md5sum on all of the files, but I need to rename the files before I write them to my file, so
sed is in the equation. However, if I pipe output to
cat, or even just try to redirect with
>, I get no output at all. Weird.
Here's what I'm running:
md5sum * | sed -e 's:\bJPG\b:jpg:' -e 's:\bMOV\b:mov:' -e 's:\bCR2\b:cr2:' | tee ~/Desktop/remote.md5sum
If I remove the final redirect to
tee, it works. If not, it doesn't. Any ideas as to what could be going wrong?