lsfrom: List directory files starting from a specific name

[ bsd3, program, utility ] [ Propose Tags ]

lsfrom lists the contents of a directory starting from a particular prefix and those files after it with respect to locale collation. This can be useful for example for continuing a command or script in a directory after a failure.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1, 0.1.1,
Change log
Dependencies base (<5), filepath, simple-cmd, simple-cmd-args (>=0.1.1) [details]
License BSD-3-Clause
Copyright 2018,2021-2022 Jens Petersen
Author Jens Petersen <>
Maintainer Jens Petersen <>
Category Utility
Home page
Bug tracker
Source repo head: git clone
Uploaded by JensPetersen at 2022-04-24T13:03:18Z
Distributions Fedora:, NixOS:
Executables lsfrom
Downloads 170 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2022-04-24 [all 1 reports]

Readme for lsfrom-

[back to package description]


lsfrom lists the files and dirs in a directory starting from the first one that matches the given filename prefix or the first filename after that if there is no match, using the current locale collation order.

$ ls
A a B C
$ lsfrom a
$ lsfrom a/
$ lsfrom /sy

This may be useful for continuing a script on the content of a directory after a failure, etc:

$ $(lsfrom next)


It uses system ls order to preserve locale collation and requires ls with the -A option to exclude . and .. (eg coreutils). It has been tested on Linux.


stack install lsfrom or cabal install lsfrom.

Contribute or feedback

lsfrom is distributed with BSD license and the project is hosted at