im trying to find a command to
change all upper case to lower case and
all lower case to upper case.
for example:
file is 'RED sox'
need it changed to 'red SOX'
tried tr 'a-zA-Z' 'A-Za-z' didn't work
what an i missing??
thanx for the help (6 Replies)
Hi, I have a variable $Ctrcd which contains country names in upper case and i want to convert them into lower case. I have tried so many solutions from already existing threads but couldn't get the correct one.
Can anybody help me with this.....
Thanks a lot.. (2 Replies)
I have a package to install and the installation script which does it . The files/directories names in the script are all lower case but the actual package has everything in upper case - file names, directories . I don't want to rename directories and files in the package - it has a lot of them . ... (2 Replies)
Hi All
I have a script which extracts values from a Database (A persons name) and puts it into a variable in my script IE: $NAME
However the Value in the DB is all in uppercase and contains the users first name and last name
EG:
> echo $NAME
GRAHAM BOYLE
>
What I need is only the... (7 Replies)
Hi all,
i have a data array as followes.
ARRAY=DFSG345GGG
ARRAY=234FDFG090
ARRAY=VDFVGBGHH
so on..........
i need all english letters to be change to lower case. So i am expecting to see
ARRAY=dfsg345ggg
ARRAY=234fdfg090
ARRAY=vdfvgbghh
so on........
If i have to copy this data in... (8 Replies)
Is there a command that can switch a character variable from UPPER case to lower case?
like
foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
...
end
Thanks a lot! (3 Replies)
I am trying to scan a file-name looking for the word "flag" however, I want to ignore case. So whether the file contains upper or lower case "FLAG" i want to do something. This is a bash script. Here is the code I am developing.
if ]; then
Thanks in advance. (2 Replies)
Hello Unix Gurus :
It would be really appreciative if can find a solution for this .
I have records in a file .
I need to Capitalize the records based on condition .
For Example i tried the following Command
COMMAND -->
fgrep "2000YUYU" /export/home/oracle/TST/data.dat | tr '' ''... (12 Replies)
Hi all,
I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like
. ; : ! ?I found the following command
sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
7 Replies
LEARN ABOUT HPUX
xtcaseproc
XtCaseProc() XtCaseProc()
Name
XtCaseProc - interface definition for procedure to convert the case of keysyms.
Synopsis
typedef void (*XtCaseProc) (Display*, KeySym, KeySym *, KeySym *);
Display *display
KeySym keysym;
KeySym *lower_return;
KeySym *upper_return;
Inputs
display Provides the display connection for which the conversion is required.
keysym Specifies the keysym to convert.
Outputs
lower_return
Returns the lowercase equivalent for keysym.
upper_return
Returns the uppercase equivalent for keysym.
Description
An XtCaseProc is a case converter procedure registered with XtRegisterCaseConverter(), and invoked by XtConvertCase() and by the Transla-
tion Manager in order to obtain the uppercase and lowercase versions of a keysym. It should store the upper and lower case versions of
keysym at the addresses specified by lower_return and upper_return. If there is no case distinction, it should store keysym at both loca-
tions.
Usage
You should only need to write a case converter procedure if you are working with non-standard keysyms.
Example
The default case converter from the R4 Intrinsics is as follows:
/* ARGSUSED */
void _XtConvertCase(dpy, sym, lower, upper)
Display *dpy;
KeySym sym;
KeySym *lower;
KeySym *upper;
{
*lower = sym;
*upper = sym;
switch(sym >> 8) {
case 0:
if ((sym >= XK_A) && (sym <= XK_Z))
*lower += (XK_a - XK_A);
else if ((sym >= XK_a) && (sym <= XK_z))
*upper -= (XK_a - XK_A);
else if ((sym >= XK_Agrave) && (sym <= XK_Odiaeresis))
*lower += (XK_agrave - XK_Agrave);
else if ((sym >= XK_agrave) && (sym <= XK_odiaeresis))
*upper -= (XK_agrave - XK_Agrave);
else if ((sym >= XK_Ooblique) && (sym <= XK_Thorn))
*lower += (XK_oslash - XK_Ooblique);
else if ((sym >= XK_oslash) && (sym <= XK_thorn))
*upper -= (XK_oslash - XK_Ooblique);
break;
default:
/* XXX do all other sets */
break;
}
}
See AlsoXtConvertCase(1), XtGetKeysymTable(1), XtKeysymToKeycodeList(1), XtRegisterCaseConverter(1), XtSetKeyTranslator(1), XtTranslateKeycode(1).
Xt - Keyboard Handling XtCaseProc()