tree

I use tree to list the contents of a java project, including files with .java, .properties and .xml extensions, and excluding compiled files, etc.

tree -P *.java -P *.properties -P *.xml -I **/META-INF/** --prune

Since the formatting uses too much spaces, using sed is possible to make the output compact (replacing two spaces by one).

sed 's/  / /g'

linux command

Back