I often do something like this:
tail -f logs/`ls -rt logs | tail -1`/debug.log
I would like to have a macro for
ls -rt <some_dir> | tail -1, but it needs to work in the context of the current command line (
<some_dir> being pulled from the current command line). Is there a way to do that?
tail -f logs/$(LAST)/debug.log