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 tee, echo, 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?
teewithtype tee, andfile /path/to/tee, path returned bytype. – enzotib Aug 23 '11 at 6:19> ~/Desktop/remote.md5sumworks? – rozcietrzewiacz Aug 23 '11 at 19:24sedworks. – TK Kocheran Aug 24 '11 at 16:41@if you are answering to a comment, I came back here by chance). OK, and how about the almost same thing - but with>> ~/Desktop/remote.md5sum? Does the file~/Desktop/remote.md5sumalready exist? – rozcietrzewiacz Aug 24 '11 at 17:58