Is it possible to list the files between two names alphanumerically?

merlin2011

Consider a directory with the following files.

20160909_154139.jpg
20160909_154038.jpg
20160909_153929.jpg
20160909_153927.jpg
20160908_121201.jpg
20160908_121155.jpg

When I do ls with no arguments, I get the files in the order above.

Let's say instead I just wanted the files in this order between 20160909_154038.jpg and 20160908_121201.jpg.

Is there some argument I can pass to ls to specify this desire?

steve

That can certainly be achieved by piping the output into awk

ls | awk '/^20160909_154038\.jpg$/,/^20160908_121201\.jpg$/'

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is there always a way to alphanumerically name something, so that it is ordered between two given places in a list?

From Dev

Is there always a way to alphanumerically name something, so that it is ordered between two given places in a list?

From Dev

How to list only the names of files that changed between two commits?

From Java

How to list only the file names that changed between two commits?

From Dev

List files which are new or deleted between two branches

From Dev

GIT - How to list only newly added files between two branches

From Dev

Get a list of changed files between two commits or branches

From Dev

GIT - How to list only newly added files between two branches

From Dev

Compare two similar directories and list differences between files

From Dev

How can I list the different hex characters between two files?

From Dev

Batch Files: List file names and folder names

From Dev

Differentiate a list between human names and company names

From Dev

Intersection between two files

From Dev

How to list files names in folder

From Dev

Truncate a list of names in two lines

From Dev

GTFS Query to list all departure and arrival times between two stop names

From Dev

delete old log files except the last one (alphanumerically sorted)

From Dev

Zip certain files having filenames alphanumerically bigger than others

From Dev

Possible to have a php function with two names?

From Dev

Is it possible to use two .babelrc files?

From Dev

Alphanumerically sort a nested list of mixed data types in Python

From Dev

Full list of possible names for custom operators in OCaml

From Dev

File.ReadAllLines of two .text files, is this possible to put in one single list?

From Dev

Mapping names in two files and getting a single file

From Dev

Compare two .CSV files and output the duplicate names

From Dev

Mapping names in two files and getting a single file

From Dev

Comparing names of two files in different directories

From Dev

Saving data between names in terminal to new files?

From Dev

To find cosine similarity between two string(names)

Related Related

  1. 1

    Is there always a way to alphanumerically name something, so that it is ordered between two given places in a list?

  2. 2

    Is there always a way to alphanumerically name something, so that it is ordered between two given places in a list?

  3. 3

    How to list only the names of files that changed between two commits?

  4. 4

    How to list only the file names that changed between two commits?

  5. 5

    List files which are new or deleted between two branches

  6. 6

    GIT - How to list only newly added files between two branches

  7. 7

    Get a list of changed files between two commits or branches

  8. 8

    GIT - How to list only newly added files between two branches

  9. 9

    Compare two similar directories and list differences between files

  10. 10

    How can I list the different hex characters between two files?

  11. 11

    Batch Files: List file names and folder names

  12. 12

    Differentiate a list between human names and company names

  13. 13

    Intersection between two files

  14. 14

    How to list files names in folder

  15. 15

    Truncate a list of names in two lines

  16. 16

    GTFS Query to list all departure and arrival times between two stop names

  17. 17

    delete old log files except the last one (alphanumerically sorted)

  18. 18

    Zip certain files having filenames alphanumerically bigger than others

  19. 19

    Possible to have a php function with two names?

  20. 20

    Is it possible to use two .babelrc files?

  21. 21

    Alphanumerically sort a nested list of mixed data types in Python

  22. 22

    Full list of possible names for custom operators in OCaml

  23. 23

    File.ReadAllLines of two .text files, is this possible to put in one single list?

  24. 24

    Mapping names in two files and getting a single file

  25. 25

    Compare two .CSV files and output the duplicate names

  26. 26

    Mapping names in two files and getting a single file

  27. 27

    Comparing names of two files in different directories

  28. 28

    Saving data between names in terminal to new files?

  29. 29

    To find cosine similarity between two string(names)

HotTag

Archive