User Tools

Site Tools


tips:linux:openlastmod

Differences

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

Link to this comparison view

tips:linux:openlastmod [2009/06/14 11:47] – created eriktips:linux:openlastmod [2009/06/14 11:48] (current) erik
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:
 +
 +<code>
 +for f in `ls -t /path/to/directory/*`; do
 +  vi $f
 +  break
 +done
 +</code>
tips/linux/openlastmod.txt · Last modified: 2009/06/14 11:48 by erik