User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

tips:linux:openlastmod [2009/06/14 04:47]
erik created
tips:linux:openlastmod [2009/06/14 04:48] (current)
Line 1: Line 1:
 +====== How to open the last modified file in a directory? ======
 +The best solution I found so far is using the following in a shell script:
 +for f in `ls -t /​path/​to/​directory/​*`;​ do
 +  vi $f
 +  break
tips/linux/openlastmod.txt · Last modified: 2009/06/14 04:48 by erik