tips:linux:openlastmod
Differences
This shows you the differences between two versions of the page.
| tips:linux:openlastmod [2009/06/14 11:47] – created erik | tips: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: | ||
| + | |||
| + | < | ||
| + | for f in `ls -t / | ||
| + | vi $f | ||
| + | break | ||
| + | done | ||
| + | </ | ||
