Quantcast
Channel: Can the UNIX command tree display only directories matching a pattern? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Gabriel for Can the UNIX command tree display only directories...

You could use my arbo command. Install with: ln -s "$PWD"/arbo.py ~/bin/arbo Now you can do: find tstdir -maxdepth 1 -iname '*qm*' |arbo --color The output looks something like this, with the same...

View Article



Answer by F. Hauri for Can the UNIX command tree display only directories...

Yes, it's a bug. From man page: BUGS Tree does not prune "empty" directories when the -P and -I options are used. Tree prints directories as it comes to them, so cannot accumu‐ late information on...

View Article

Can the UNIX command tree display only directories matching a pattern?

I'm trying to figure out if there is a way to get the UNIX command tree to display only directories that match a specific pattern. % tree -d tstdir -P '*qm*' -L 1 tstdir |-- d1 |-- d2 |-- qm1 |-- qm2...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images