Re: [SLUG] text processing

From: blee2@tampabay.rr.com
Date: Thu Sep 18 2008 - 04:02:06 EDT


Thus Eben King hast written on Wed, Sep 17, 2008 at 08:52:20PM -0400, and, according to prophecy, it shall come to pass that:
> >home/mp3/A
> >
> >with
> >
> >home/mp3/a/A
>
> Yes, in the case of Aphex_Twin and Abbot_+_Costello and all those "A"
> groups. But for the rest, would I have to do something similar 26 times?
> Or is there a regexp form that means "insert lowercase(#1) at #2"?
>
> /home/eben/mp3/_/_...

Something I've done in similar cases where I want to build a listing of an entire directory is:

        find /home/mp3 > ~/foo.m3u
        vi ~/foo.m3u #edit appropriately

or

        # Of course this will have to be modified if there are many, many files
        # Should sort in local sort order.
        for i in "/home/mp3/*/*"
        do
                echo '<a href='$i'>'$i'</a> <br>' >> ~/foo.m3u
                #Not sure why we're building links to mp3 files, but why not.
        done

        vi ~/foo.m3u #edit appropriately

I'm not sure how much that will help you, but it may be a more direct/brute force approach that will give you another idea.
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:58:08 EDT