Skip navigation

I use to keep my library image updated with the cool tree utility of my linux bash.
With the -d option I print directories only, while with -R I crawl down the whole directory tree of my library.

OUTPUT_FILE="~/myMusic.txt"
ROOT="~/Music/"
echo -e "$( date +%d\ %B\ %Y )\n" > "$OUTPUT_FILE"
tree "$ROOT" -Rd >> "$OUTPUT_FILE"

Output example:

21 July 2011
/home/piero/Music/
 ├── 2 Pac
 │   └── Greatest Hits
 │       ├── cd one
 │       └── cd two
 ├── 883
 │   └── The Best Of
 ├── AA.VV
 │   └── No New York 1979
 ├── AC DC
 │   ├── Back in Black 1980
 │   └── Best of ACDC
 ├── A Certain Ratio
 │   ├── Early 2002
 │   │   ├── early cd1
 │   │   └── early cd2
 │   └── To Each 1981
 ...

Essential, practical, Bauhaus.
Great!

4 Comments

  1. 883 – The Best Of.
    Neanche “L’esterofilia è curabile – Vol. 135” potrebbe aiutarti.

    • AHAH!!
      Stefania “sei un mito”.
      Comunque non sono d’accordo, gli 883 devono sempre esserci.
      Sempre.

  2. Bravo.
    Basta che alla D si possa leggere:
    D’Avena Cristina – Le più belle canzoni di Cristina D’Avena – Vol. 1
    – Le più belle canzoni di Cristina D’Avena – Vol. 2.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: