Post by azigniHello,
I know this command ls > somefile.txt reads the contents of a folder and
outputs it to somefile.txt.
I have so far, 6.x folders of ripped mp3's from my music collection and I
would like to print out the contents of each folder under the main
folders.
The folder tree is something like this: Music1/EasyListening/several
directories of albums/the songs they each contain.
What do I need to modify the ls output command to to to have it read sub-
folders, sub-sub folders and print out those file names?
Thanks in advance!
If you have nemo actions installed, there is a right-click action to 'print tree'. Does a great
output to a html file if you can use that to print.
Directory Tree
[4.1k] /home/alan/Music
├── [3.1M] Formula 1 Theme.m4a
├── [2.8M] Prelude_Day_the_Earth_Stood_Still_1951.mp3
├── [ 29k] Playlist usr-share-sounds.xspf
├── [4.1k] Bedtime
│ ├── [8.3M] 224-Star Wars - Return of the Jedi, Victory Celebration-End Title.mp3
│ ├── [7.3M] 116-Crimson Tide Theme.mp3
│ ├── [7.1M] 196-Stars On 45 Oldies Collage 1.mp3
│ ├── [5.8M] 152-Queen Bohemian Rhapsody.mp3
│ ├── [5.7M] 184-Ringo Starr Oh My My.mp3
│ ├── [5.6M] 216-Star Wars - Duel of the Fates Suite.mp3
│ ├── [5.4M] 112-You've Got Mail Suite.mp3
│ ├── [5.4M] 220-Star Wars IV-A New Hope Ending Theme.mp3
│ ├── [4.9M] 124-Glenn Miller Orchestra Sing Sing Sing.mp3
│ ├── [4.6M] 156-Dirty Dancing I've Had The Time Of My Life.mp3
│ ├── [4.3M] 168-Irene Cara Flashdance What A Feeling.mp3
│ ├── [4.1M] 132-Francis Goya Song Of The Volga Boatman.mp3
│ ├── [3.9M] 128-Oak Ridge Boys Elvira.mp3
│ ├── [3.9M] 200-Ray Stevens Convoy.mp3
│ ├── [3.9M] 164-Christopher Cross Arthur's Theme (Best That You Can Do).mp3
│ ├── [3.8M] 148-Nobody Does It Better.mp3
│ ├── [3.8M] 172-Irene Cara Fame.mp3
│ ├── [3.6M] 136-Todd Rundgren Bang On The Drum All Day.mp3
│ ├── [3.5M] 236-Ray Stevens Everything Is Beautiful.mp3
│ ├── [3.5M] 144-Enrique Iglesias Rythm Divine.mp3
│ ├── [3.4M] 120-Paul Simon Kodachrome.mp3
│ ├── [3.2M] 208-Daniel Boone Beautiful Sunday.mp3
│ ├── [3.1M] 176-John Denver Thank God I'm A Country Boy.mp3
│ ├── [3.0M] 204-Trini Lopez If I Had A Hammer.mp3
ETC.
--
Linux Mint 21.3 Cinnamon 6.0.4 Kernel 5.15.0-105-generic
Al