Hi,
Q1: are the variables in shell script usually UPPER CASE?
Q2: can sed output to the same file that it's using it?
eg. cat sameFile | sed 's/here/there/g' > sameFile ?
I expect the sed replace all "here" to "there" and change it in sameFile.
i tried that one, the sameFile... (1 Reply)
Using STDIN, how can I use perl to take an input string, with all lower case letters in the first five characters, and convert them to uppercase...
then take all uppercase letters in the second five characters and convert them to lowercase.
Example:
MichaelSmith to michaELSMIth
Thank you! (2 Replies)
Hi All,
Need to convert file names to upper case using tr command in Unix.
In a folder -> /apps/dd01/misc
there are two files like:
pi-abcd.pdf
pi-efgh.pdf
The output of should be like:
pi-ABCD.pdf
pi-EFGH.pdf
I have used the command to work for a single file at a time... (3 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)
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 want to change the out put of a decode file from lower to upper. i used tr command but facing issue.
set -vx
id=$(id)
dt=$(date)
store=$1
if ]; then
cd $APPL_TOP/local/bin
cp .sqlpass.Z $$.temp.Z
uncompress $$.temp.Z
sed -e s/sqlpass/$$.sqlpass/ $$.temp >... (5 Replies)
Discussion started by: nag_sathi
5 Replies
LEARN ABOUT OSF1
towupper
towlower(3) Library Functions Manual towlower(3)NAME
towlower, towupper - Convert uppercase and lowercase wide characters
LIBRARY
Standard C Library (libc)
SYNOPSIS
#include <wctype.h>
wint_t towlower ( wint_t wc);
wint_t towupper ( wint_t wc);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
towlower(), towupper(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies the wide character to convert.
DESCRIPTION
The towlower() function converts the uppercase wide character specified by the wc parameter into the corresponding lowercase wide charac-
ter. The towupper() function converts the lowercase wide character specified by the wc parameter into the corresponding uppercase wide
character. The behavior of the towlower() and towupper() functions are affected by the LC_CTYPE category of the program's locale.
[Tru64 UNIX] In a locale where case conversion information is not defined, these functions determine the case of characters according to
the rules of the C locale.
RETURN VALUES
In the towlower() function, if the wc parameter contains an uppercase wide character that has a corresponding lowercase wide character,
that wide character is returned. Otherwise, the wc parameter is returned unchanged.
In the towupper() function, if the wc parameter contains a lowercase wide character that has a corresponding uppercase wide character, that
wide character is returned. Otherwise, the wc parameter is returned unchanged.
RELATED INFORMATION
Functions: conv(3), setlocale(3), towctrans(3), wctrans(3)
Standards: standards(5) delim off
towlower(3)