I found it for bash, but how would I do it for tcsh? I want to chain it with a cd command.
`ls -dt */ | head -1`
works for me. I can use it with cd or set it to an environment variable.
3 years ago