I newly learned how to search multiple file names with find
like:
find . \( -iname "*.srt" -o -iname "*.mp4" \)
But in some cases I had to use so many filters like this and that simple command line became so long:
find . \( -iname "*.srt" -o ......... \)
Can I create a variable and add this all filters in it, then use it again in find command? Thank you!
find
repeatedly with the same list of patterns, a function would be a much better choice.