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.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago