Quick edit the recent changed file with vi & ls
vi `ls -t | head -1`
ls -t
sorts the file by modification time, showing the last edited file first. head -1
picks up this first file.
Written by Zhang Tai
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#