Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!chinet!john From: john@chinet.chi.il.us (John Mundt) Newsgroups: comp.unix.questions Subject: Re: moving upper case names to lower case Message-ID: <9326@chinet.chi.il.us> Date: 22 Aug 89 15:58:53 GMT References: <20672@adm.BRL.MIL> Reply-To: john@chinet.chi.il.us (John Mundt) Organization: Chinet - Public Access Unix Lines: 25 In article <20672@adm.BRL.MIL> Leisner.Henr@xerox.com (Marty) writes: >I'm looking for a good, clean way to move files from upper case names to lower case names. > >i.e. FOO.C to foo.c > >I could always right a C program, but there gotta be a better way. > #include #include main() { register int c; while ((c = getchar()) != EOF) putchar(tolower(c)); } It's easier to write and compile this than to get tr to massage the string for you. -- --------------------- John Mundt Teachers' Aide, Inc. P.O. Box 1666 Highland Park, IL john@chinet.chi.il.us (312) 998-5007 (Day voice) || -432-8860 (Answer Mach) && -432-5386 Modem