Converting To All Upper (Or Lower) Case 
Author Message
 Converting To All Upper (Or Lower) Case

Quote:

>Does anyone know of a lisp routine that will convert all lowercase text
>to uppercase text. To sit there and retype the text is a real pain.

Andrew,

If you just want to do a {*filter*} conversion and you're on a UNIX system,
you don't have to go to all the trouble of a lisp routine.  There's a
UNIX utility called "tr" that will translate what you want.  For your
specific application use:

  UNIX PROMPT>tr "[a-z]" "[A-Z]" < input_file_name > output_file_name

If you wanted to make all uppercase into lowercase, just use:

  UNIX PROMPT>tr "[A-Z]" "[a-z]" < input_file_name > output_file_name

There should be a man page on your system for "tr" if you want more info.

The nice thing about learning user-hostile UNIX is that there are *plenty*
of little goodies like this hidden in it.  The only headache is that you
can spend lifetimes looking for them!  (I've found that to get out of some
of the prattfalls I've run into over the years while using Synopsys, Cadence,
Mentor, you-name-it-EDA-company's tools one is *required* to seek these
goodies out.)
                           - John Cooley
                             Part Time Sheep & Goat Farmer
                             Part Time EDA Consumer Advocate
                             Full Time ASIC, FPGA & EDA Design Consultant

===========================================================================
 Trapped trying to figure out a Synopsys bug?  Want to hear how 3114 other
 users dealt with it ?  Then join the E-Mail Synopsys Users Group (ESNUG)!


     /o o\  /  it's a FEATURE!"                 (508) 429-4357
    (  >  )
     \ - /     - John Cooley, EDA & ASIC Design Consultant in Synopsys,
     _] [_         Verilog, VHDL and numerous Design Methodologies.

     Holliston Poor Farm, P.O. Box 6222, Holliston, MA  01746-6222
   Legal Disclaimer: "As always, anything said here is only opinion."



Wed, 18 Jun 1997 05:54:50 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Converting To All Upper (Or Lower) Case

2. Convert All UPPER CASE to Upper and Lower case function

3. REXX and 4OS2 problem: lower-case text gets converted to upper-case

4. converting lower case to upper case

5. converting lower case to upper case

6. Upper case / Lower case I'm a lost case

7. Converting variables in AWK to upper or lower case

8. Converting to UPPER or lower case ?

9. Upper/lower case converting program

10. Lower case to upper case conversion

11. Lower Case To Upper Case in COBOLII

12. Help: Lower case to upper case remapping?

 

 
Powered by phpBB® Forum Software