Skip to main content
Post Closed as "Duplicate" by don_crissti, jimmij, Rui F Ribeiro, Fabby, GAD3R
give question a proper title
Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

Another kind of "ls case insensitive" questioninsensitive, list files in directory, ending in .jpg

Source Link
Steve Wright
  • 131
  • 1
  • 4
  • 9

Another kind of "ls case insensitive" question

I'm trying to write an alias to list all the files in a directory ending in JP(E)G in its various forms. The ones I'm looking for it to recognise are .jpg .JPG .jpeg and .JPEG.

Is there a form of ls (or ls in combination with another command, such as find or grep) that will do this?