I have a command alias:
alias lf='vi `ls -rt | tail -1`'
that I use to open up the last run file in a session log directory. 99% of the time I only want to see the last line of it. Is it possible to pass the ":$" command to vi when you open it so it opens down at the bottom straight away.
????
cheers
simmo
alias lf='vi `ls -rt | tail -1`'
that I use to open up the last run file in a session log directory. 99% of the time I only want to see the last line of it. Is it possible to pass the ":$" command to vi when you open it so it opens down at the bottom straight away.
????
cheers
simmo