File Exchange

image thumbnail

List Recently Modified Files

version 1.0.0.0 (2.26 KB) by Michael Coen
Lists the most recently modified files/dirs in the current directory.

1 Download

Updated 20 Aug 2009

View License

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.

Cite As

Michael Coen (2021). List Recently Modified Files (https://www.mathworks.com/matlabcentral/fileexchange/25081-list-recently-modified-files), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!