Re^2: Converting to uppercase/lowercase in sed
Thomas Tornblom
thomas at uplog.se
Tue Aug 28 15:30:12 AEST 1990
In article <522 at ncratl.Atlanta.NCR.COM> gedwards at ncratl.Atlanta.NCR.COM (Gordon Edwards) writes:
Dan_Jacobson at ATT.COM writes:
>merlyn at iwarp.intel.com (Randal Schwartz) writes:
>>yeah, the not very well documented "y" command.
>> y/a-z/A-Z/
>
>bzzzzt. Minus 10 points! got to say:
>y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/
>--
>Dan_Jacobson at ATT.COM +1-708-979-6364
To convert lowercase to uppercase with sed I use
s/[a-z]/[A-Z]/g
Not with any sed I know of. I guess you don't mean to replace each lowercase
letter by the string '[A-Z]'.
Minus 10 pts!
Thomas
--
Real life: Thomas Tornblom Email: thomas at uplog.se
Snail mail: TeleLOGIC Uppsala AB Phone: +46 18 189406
Box 1218 Fax: +46 18 132039
S - 751 42 Uppsala, Sweden
More information about the Comp.unix.questions
mailing list