alias newer "ls -dt \!* | head -1"
|If your system doesn't have acommand, use sed 1q instead.|
For example, let's say that you have two files named plan.v1 and and plan.v2. If you're like me, you (often) edit the wrong version by mistake - and then, a few hours later, can't remember what you did. You can use this alias to figure out which file you changed most recently:
Oops. I edited the wrong version by mistake. I could also have usedto handle this in one step:
emacs `newer plan.*`