I need to find a command that can list a directory with a one level deep listing. I want to include a text file with a backup of my music drive so I know what all is contained in the backup.
So a directory would be
Artist 1
Album 1
Album 2
Artist 2
Album 1
Artist 3
Album 1
Album 2
Album 3
and the listing would be:
Artist 1 - Album 1
Artist 1 - Album 2
Artist 2 - Album 1
Artist 3 - Album 1
Artist 3 - Album 2
Artist 3 - Album 3
etc.
Can such a command be issued at a command line and piped to a text file?
So a directory would be
Artist 1
Album 1
Album 2
Artist 2
Album 1
Artist 3
Album 1
Album 2
Album 3
and the listing would be:
Artist 1 - Album 1
Artist 1 - Album 2
Artist 2 - Album 1
Artist 3 - Album 1
Artist 3 - Album 2
Artist 3 - Album 3
etc.
Can such a command be issued at a command line and piped to a text file?