cd "$(mkdir -v "$(date -R)"|sed s+.`(.*)'.*)"
This is meant to create a dir named $(date -R). I could simply cd $(date -R), but the culprit is the date could change since the previous command was run (mkdir).
So I want to parse its output to determine the name of the dir created. How do I correct the code? Currently it displays > prompt, indicating that a quote is missing.
Changing ' to \' doesn't alter the result. If you have a better way to do this, please say so.
