All Questions
1
question
2
votes
4
answers
422
views
How to cd to a newly created dir?
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 ...