tree shows...  template_one_file.sh  template_sed.sh  testy.sh  tmp   file1.html.13567_old   file2.html.13567_old   file3.html.13567_old   file4.html.13567_old  use_case_to_add_etc_2_numbers vi     vim_tips_and_chearsheet     vi_stuff160 directories, 713 filesand I can ignore the tmp directory (for example) with tree -I 'tmp' -L 4...  template_multiple_files.sh  template_one_file.sh  template_sed.sh  testy.sh  use_case_to_add_etc_2_numbers vi     vim_tips_and_chearsheet     vi_stuff157 directories, 709 filesbut why can I not ignore individual files such as the _old files withtree -I 'old' -L 4which still shows the _old files...  template_multiple_files.sh  template_one_file.sh  template_sed.sh  testy.sh  tmp   file1.html.13567_old   file2.html.13567_old   file3.html.13567_old   file4.html.13567_old  use_case_to_add_etc_2_numbers vi     vim_tips_and_chearsheet     vi_stuff160 directories, 713 filesI tried '.*old' and '.*old$' patterns but that didn't help.
Why does 'tree' command ignore directories but not files
tree
Use a wildcard:tree -I '*_old' -L 4Reference: man tree (my emphasis)-I patternDo not list those files that match the wild-card pattern.