I'm in a directory where running tree command produces something like this:
├── directory1
│ └── image_sequence
│ ├── image.0001.jpg
│ ├── image.0002.jpg
│ ├── image.0003.jpg
│ ├── image.0004.jpg
│ ├── image.0005.jpg
│ └── image.0006.jpg
│
└── directory2
├── somefile.ext
└── someanotherfile.ext2
The image sequence inside image_sequence produces a large listing that I want to trim. My desired output is something like below:
├── directory1
│ └── image_sequence
│ └── image.####.jpg
│
└── directory2
├── somefile.ext
└── someanotherfile.ext2
Can the output of tree command somehow be modified?
treecommand or not.image.####.jpgformat. Then use Python to modify image sequence output. The links you gave suggested the flags which will completely omit the output of image sequence. There's also an option called--filelimitwhich is close to what I want, but again it completely omits the image sequence output. I fear that using Python completely will not produce the identical output (the symbols and all).