Loading...

Filtering output of `tree` command

Answer #1 90 %

tree command has -I option that allows you to filter out both files and directories that match the given pattern.

tree -I 'blahblah|*.msh|*.log'
Tags: bash

You’ll also like:


© 2022 CodeForDev.com -