Re^2: Converting to uppercase/lowercase in sed
Randal Schwartz
merlyn at iwarp.intel.com
Tue Aug 28 10:49:49 AEST 1990
In article <522 at ncratl.Atlanta.NCR.COM>, gedwards at ncratl (Gordon Edwards) writes:
| To convert lowercase to uppercase with sed I use
|
| s/[a-z]/[A-Z]/g
Hmm.
$ echo 'Try this.' | sed s/[a-z]/[A-Z]/g
T[A-Z][A-Z] [A-Z][A-Z][A-Z][A-Z].
$
What weird version of Unix are you using? (I'm not denying that it
may work on *some* Unix-like OS, but it doesn't work on the One True
Unix or BSD-derivatives or [blech] System V that I know of.)
#ifdef NEWSADMIN_NOTE
And, get your newsposter fixed. "Re^2" is broke. Phased out ages ago.
#endif
Just another UNIX hacker,
--
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III |
| merlyn at iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/
More information about the Comp.unix.questions
mailing list