Tagged Questions
3
votes
1answer
144 views
bash: cd to the most recently modified child directory
Wondering if there's an easy and/or portable way to say "change to the most recently modified child directory." I can use ls and awk but there's probably a better way.
cd $( ls -ltrd */ | tail -1 | ...