On 11/13/05, Scott McClelland <[EMAIL PROTECTED]> wrote:
> Here is the idea with a more complete list of songs.  For the first group of
> Yes albums, some complete albums fit together, such as Close To The Edge,
> and Fragile, since together they total less than 80 minutes (~ 84 MB).
> Someone may have favorite albums, or styles to keep together.  e.g. Yessongs
> 1 & 2 go together, but there may be room at the end for small songs.  If
> albums 3,4 and 5 are someone's favorites, than more weight can be given to
> selecting songs from those albums.  (Of course less favorite ablums can be
> left out, or songs can be deleted manually before beginning the process).
>
> $ du -h
> 48M     ./1969 Yes
> 37M     ./1970 Time And A Word
> 48M     ./1971 The Yes Album
> 35M     ./1972 Close To The Edge
> 49M     ./1972 Fragile
> 91M     ./1973 Yessongs CD 1
> 88M     ./1973 Yessongs CD 2
> 45M     ./1974 Relayer
> 47M     ./1974 Tales From Topographic Oceans CD 1
> 46M     ./1974 Tales From Topographic Oceans CD 2
> 42M     ./1975 Yesterdays
> 60M     ./1976 The Story Of Relayer Live CD 1
> 68M     ./1976 The Story Of Relayer Live CD 2
> 699M    .
>
>
> $ ls -lRh
> .:
> total 0
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1969 Yes
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1970 Time And A Word
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1971 The Yes Album
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1972 Close To The
> Edge
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1972 Fragile
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1973 Yessongs CD 1
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1973 Yessongs CD 2
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1974 Relayer
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1974 Tales From
> Topograp
> hic Oceans CD 1
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1974 Tales From
> Topograp
> hic Oceans CD 2
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1975 Yesterdays
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1976 The Story Of
> Relaye
> r Live CD 1
> dr-xr-xr-x+   2 Administ None            0 Feb 28  2005 1976 The Story Of
> Relaye
> r Live CD 2
>
> ./1969 Yes:
> total 48M
> -r-xr-xr-x    1 Administ None         5.7M Feb 19  2003 01 Beyond And
> Before.mp3
>
> -r-xr-xr-x    1 Administ None         7.9M Feb 19  2003 02 I See You.mp3
> -r-xr-xr-x    1 Administ None         3.3M Feb 19  2003 03 Yesterday And
> Today.m
> p3
> -r-xr-xr-x    1 Administ None         4.7M Feb 19  2003 04 Looking
> Around.mp3
> -r-xr-xr-x    1 Administ None         6.6M Feb 19  2003 05 Harold Land.mp3
> -r-xr-xr-x    1 Administ None         6.6M Feb 19  2003 06 Every Little
> Thing.mp
> 3
> -r-xr-xr-x    1 Administ None         5.2M Feb 19  2003 07 Sweetness.mp3
> -r-xr-xr-x    1 Administ None         7.3M Feb 19  2003 08 Survival.mp3
>
> ./1970 Time And A Word:
> total 37M
> -r-xr-xr-x    1 Administ None         4.4M Feb 19  2003 01 No Opportunity
> Necess
> ary, No Experience Needed.mp3
> -r-xr-xr-x    1 Administ None         5.3M Feb 19  2003 02 Then.mp3
> -r-xr-xr-x    1 Administ None         5.6M Feb 19  2003 03 Everydays.mp3
> -r-xr-xr-x    1 Administ None         3.5M Feb 19  2003 04 Sweet Dreams.mp3
> -r-xr-xr-x    1 Administ None         6.0M Feb 19  2003 05 The Prophet.mp3
> -r-xr-xr-x    1 Administ None         2.0M Feb 19  2003 06 Clear Days.mp3
> -r-xr-xr-x    1 Administ None         5.4M Feb 19  2003 07 Astral
> Traveller.mp3
> -r-xr-xr-x    1 Administ None         4.1M Feb 19  2003 08 Time And A
> Word.mp3
>
> ./1971 The Yes Album:
> total 48M
> -r-xr-xr-x    1 Administ None          11M Feb 19  2003 01 Yours Is No
> Disgrace.
> mp3
> -r-xr-xr-x    1 Administ None         3.8M Feb 19  2003 02 The Clap.mp3
> -r-xr-xr-x    1 Administ None          11M Feb 19  2003 03 Starship
> Trooper.mp3
> -r-xr-xr-x    1 Administ None         8.0M Feb 19  2003 04 I've Seen All
> Good Pe
> ople.mp3
> -r-xr-xr-x    1 Administ None         3.8M Feb 19  2003 05 A Venture.mp3
> -r-xr-xr-x    1 Administ None          10M Feb 19  2003 06 Perpetual
> Change.mp3
>
> ./1972 Close To The Edge:
> total 35M

    . . .  many lines snipped . . .

I see what you have here.  It is a listing that has been nicely
arranged for people to look at, but is not very nice for a computer
program to parse.  I do have a program that could be used to put this
back into a better form, but you can do the same thing with the
original files.  The command line that will produce a listing that
shows the relevant information without pretty-printing is the
following:

  $  tar cf - . | tar tvf - | gawk '{$1=$2=$5=""; print}'  > /tmp/file.lst

Explanation:
The first "tar" command creates an annotated image file of everything
in the directory and subdirectories.
The second "tar" command reads the annotation from the image file.
The "gawk" command keeps the relevant information, namely file size,
date, and directory path and file name, discarding file attributes,
owner, and time-of-day.

Here is a short sample of what the output looks like when I apply this
to a bunch of files that I am archiving:
  0 2005-05-27  ./
  0 2002-09-09  ./misc/
  524886016 2002-01-12  ./misc/Oracle_downloadable.iso
  402941952 2002-01-12  ./misc/XP_Microsoft_Conversion_of_Linux_Ecommerce.iso
  615649280 2000-11-23  ./misc/compaq-linux-alpha-power-tools.iso
  0 2002-09-09  ./demo/
  725712896 2001-11-10  ./demo/linux-demo-debian-based.iso
  673349632 2002-03-17  ./demo/linux_demo_debian_suse_based.iso
  0 2002-03-16  ./docs/
  125587456 2002-03-10  ./docs/KPLUG_docs_v1.6_10-27-01.iso
  275204096 2001-03-10  ./docs/internet_encyclopedia_freesoft.iso

Highlights of this presentation that make it easy for another program
to parse include:
Directories are indicated by having 0 size.
File sizes are in bytes, not "-h Human" representation.  Easier to do
arithmetic on.
Dates are in sortable year-month-day order.

    carl
--
    carl lowenstein         marine physical lab     u.c. san diego
                                                 [EMAIL PROTECTED]

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie

Reply via email to