Skip to main content
Commonmark migration
Source Link

Short answer

#Short answer NoNo. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob (This works in Bash, see How to match case insensitive patterns with ls? for solutions for other shells.)

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob (This works in Bash, see How to match case insensitive patterns with ls? for solutions for other shells.)

Short answer

No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob (This works in Bash, see How to match case insensitive patterns with ls? for solutions for other shells.)

added 106 characters in body
Source Link
ilkkachu
  • 148k
  • 16
  • 268
  • 441

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob (This works in Bash, see How to match case insensitive patterns with ls? for solutions for other shells.)

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob (This works in Bash, see How to match case insensitive patterns with ls? for solutions for other shells.)

fix error
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE ""[.jpe]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE ".jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob

#Short answer No. But then ls does not have a way to list file ending .jpg case sensitive or note. It is the shell that converts the *.jpg into a list of files, and passes this list to ls. Try echo *.jpg, to get some ideas of what the shell is doing.

#Long answer

You can use find: e.g. find . -iname "*.jpg" -o -iname "*.jpeg"

or use grep e.g. ls | grep -iE "[.]jpe?g$"

or set your shell to have case insensitive globs: shopt -s nocaseglob

added 54 characters in body
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113
Loading
Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113
Loading