Artificial intelligent assistant

List all files with extensions .tif, .tiff, .TIF, .TIFF Given a nested directory, I would like to list all tif files with extension `.tif`, `.TIF`, `.tiff`, `.TIFF`. Currently I'm using find . -type f -iname *.TIF -print ; find . -type f -iname *.TIFF -print; Using `-iname` allows me to be case-insensitive but it goes through the directory twice to get files with `.tif` and `.tiff`. Is there a better way to do this? Perhaps with brace expansion? **Why not`*.tif*`?** In some cases, my directories might have auxiliary files with extension `.tif.aux.xml` alongside the tiffs. I'd like to ignore those.

`find` supports an “or” disjunction, `-o`:


find . -type f \( -iname \*.tif -o -iname \*.tiff \)


This will list all files whose name matches `*.tif` or `*.tiff`, ignoring case.

`-print` is the default action so it doesn’t need to be specified here. `*`, `(`, and `)` are escaped so that they lose their significance for the shell.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 89eb5f6d196ae9310b892b74a496efb2