Be the first to rate this file! 1 Download (last 30 days) File Size: 2.26 KB File ID: #25081

List Recently Modified Files

by Michael Coen

 

20 Aug 2009

Lists the most recently modified files/dirs in the current directory.

| Watch this File

File Information
Description

Usage: lsl
            lsl(n), where n = number of files to display.
           Default n = 20.

Lists the most recently modified files/dirs (and their accompanying details) in the current directory.

Provides the equivalent of Unix's "ls -lt | head" from within Matlab on Linux or Windows. Yup, this is quite trivial, but I can't use Matlab without this anymore.

This only displays *.m, *.mat, *.fig, *.txt, and directories, other than those in the dirExclude variable, such as .cvs, .svn, etc. Just modify indicated variables to change this behavior.

MATLAB release MATLAB 7.7 (R2008b)
Other requirements Runs on Matlab 6.5 through 2009a. Windows and Linux friendly. Should work in Solaris but I haven't tried.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
utility Michael Coen 20 Aug 2009 09:46:45
files Michael Coen 20 Aug 2009 09:46:45
file utility Michael Coen 20 Aug 2009 09:46:45
shell command Michael Coen 20 Aug 2009 09:46:45

Contact us at files@mathworks.com