Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

towupper_l(3) [osx man page]

TOWUPPER(3)						   BSD Library Functions Manual 					       TOWUPPER(3)

NAME
towupper, towupper_l -- lower case to upper case letter conversion (wide character version) LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <wctype.h> wint_t towupper(wint_t wc); #include <wctype.h> #include <xlocale.h> wint_t towupper_l(wint_t wc, locale_t loc); DESCRIPTION
The towupper() function converts a lower-case letter to the corresponding upper-case letter. Although the towupper() function uses the current locale, the towupper_l() function may be passed a locale directly. See xlocale(3) for more information. RETURN VALUES
If the argument is a lower-case letter, the towupper() function returns the corresponding upper-case letter if there is one; otherwise, the argument is returned unchanged. SEE ALSO
iswupper(3), toupper(3), towlower(3), wctrans(3), xlocale(3) STANDARDS
The towupper() function conforms to ISO/IEC 9899:1999 (``ISO C99''). BSD
October 3, 2002 BSD

Check Out this Related Man Page

TOWUPPER(3)						   BSD Library Functions Manual 					       TOWUPPER(3)

NAME
towupper, towupper_l -- lower case to upper case letter conversion (wide character version) LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <wctype.h> wint_t towupper(wint_t wc); #include <wctype.h> #include <xlocale.h> wint_t towupper_l(wint_t wc, locale_t loc); DESCRIPTION
The towupper() function converts a lower-case letter to the corresponding upper-case letter. Although the towupper() function uses the current locale, the towupper_l() function may be passed a locale directly. See xlocale(3) for more information. RETURN VALUES
If the argument is a lower-case letter, the towupper() function returns the corresponding upper-case letter if there is one; otherwise, the argument is returned unchanged. SEE ALSO
iswupper(3), toupper(3), towlower(3), wctrans(3), xlocale(3) STANDARDS
The towupper() function conforms to ISO/IEC 9899:1999 (``ISO C99''). BSD
October 3, 2002 BSD
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File listing

I can't seem to list all the files that begin with a lower case or upper case letter between a-m while being in that directory? Please help I've tried everything from all the ls commands to even grep commands. b (5 Replies)
Discussion started by: Astudent
5 Replies

2. Shell Programming and Scripting

perl tr

I am attempting to have an upper case and lower case version of the input. I am using tr in perl, but I want to know if this can be done in a more efficient manner. Here is my code: sub getserver { print "Please enter the server name: "; $servername=<>; ... (2 Replies)
Discussion started by: reggiej
2 Replies

3. Shell Programming and Scripting

what is dead.letter ??

Hi all can you please help me what is dead.letter file ? when it is created ? for the first time i have seen this file getting created in my current directory? I am using SunOs. Any IDEA ?? (2 Replies)
Discussion started by: jambesh
2 Replies

4. Shell Programming and Scripting

Creating multiple extensions

Friends I want to automat sending a letter to different persons whose directories are named as 001, 002, 003, 004. To push the same letter to all these directories, I need to name the letter as letter.001, letter.002 like that. Is there any method whereby I get the extension of this letter... (2 Replies)
Discussion started by: chssastry
2 Replies

5. UNIX for Dummies Questions & Answers

need help with rename

hi guys i am writing a script to change the filename which is enterered as input to lower case letter even if one letter is upper case i have to change it to lower case i get the input and use sed comand should i use like that sed/s/a-z/A-Z/d will it be like that can u please help me (8 Replies)
Discussion started by: farhan_t49
8 Replies

6. Shell Programming and Scripting

Convert to upper case first letter of each word in column 2

Hi guys, I have a file separated by ",". I´m trying to change to upper case the first letter of each word in column 2 to establish a standard format on this column. I hope somebody could help me to complete the SED or AWK script below. The file looks like this: (Some lines in column 2... (16 Replies)
Discussion started by: cgkmal
16 Replies

7. Shell Programming and Scripting

Scan and change file data content problem

Input file >Read_1 XXXXXXXXXXSDFXXXXXDS (condition 1: After the last "X" per line, if the distance is less than or equal to 3 letter, replace those not "X" letter with "X") TREXXXXXXXSDFXXXXXDS (condition 2: Before the first "X" per line, if the distance is less than or equal to 3 letter,... (12 Replies)
Discussion started by: patrick87
12 Replies

8. UNIX for Dummies Questions & Answers

How to use wild cards to find files beginning with upper and lower case

Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first. At the moment i have the following code that ls -d... (3 Replies)
Discussion started by: parker4001
3 Replies

9. UNIX for Dummies Questions & Answers

An easier way to move character from field to a new line

Hi ! Is there a more convenient way to do the following: When, in $2, there is more then one letter (separated by ","), it returns the letter on the second position to a new line in $2 with the same content in $1 and $3 as the line this letter comes from. infile: aaaaa A,B 1,2,3,4,5... (6 Replies)
Discussion started by: lucasvs
6 Replies

10. Shell Programming and Scripting

Change first letter of a word from lower case to upper case

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

11. Shell Programming and Scripting

Multiplying lines of file that contain certain letter by value

I am trying to remove the last letter in a file and then multiply each line (which contained this letter) by 500. This is what I have: 1499998A 1222222A 1325804A 1254556 1235 9998 777 cat /tmp/listzz |gawk '{print $4}'|gawk '{gsub(//, ""); print } This removes the A... (1 Reply)
Discussion started by: newbie2010
1 Replies

12. Shell Programming and Scripting

Replace specific letter in a file by other letter

Good afternoon all, I want to ask how to change some letter in my file with other letter in spesific line eg. data.txt 1 1 1 0 0 0 0 for example i want to change the 4th line with character 1. How could I do it by SED or AWK. I have tried to run this code but actually did not... (3 Replies)
Discussion started by: weslyarfan
3 Replies