tcsh: how to enter a subdirectory that's most recently modified?

0

0

I found it for bash, but how would I do it for tcsh? I want to chain it with a cd command.

Stuart

Posted 2012-10-01T18:17:49.573

Reputation: 397

Answers

0

`ls -dt */ | head -1` 

works for me. I can use it with cd or set it to an environment variable.

Stuart

Posted 2012-10-01T18:17:49.573

Reputation: 397