Re: [SLUG] text processing (lower case)

From: blee2@tampabay.rr.com
Date: Thu Sep 18 2008 - 14:26:58 EDT


Thus Eben King hast written on Thu, Sep 18, 2008 at 11:09:17AM -0400, and, according to prophecy, it shall come to pass that:
> The thingy for lowercasing a letter goes in place of the '?'. But that's
> as bad as the vim problem, s/vim/sed/, since I don't know how to do that.

Oh, sorry. Some unix versions have an lcase comand. If not, write your own:

        sed y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/

The "y" command is "yubstitute" characters in the first string with the
corresponding characters in the second string. I just make a seperate
command so I can pipe into it, etc. For upper case, just swap the
strings.
When I first needed to do that, it took me a long time to find.

If you're going to be editing the result lists by hand, you may save
some work by sorting the lines:

        sort -t '/' -k 4 # assuming /home/mp3/Aerosmith/filename

I have found that certain players, specifically GQmpeg, will eat comments
from m3u files, so it may not be worth commenting them.
-----------------------------------------------------------------------
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:26 EDT