Thanks for your answer, the script it works perfect. IŽll try to understand better the use you gave it to functions youŽve used. Great!.
Scrutinizer,
IŽve tried your solution, but It looks does not change to upper case only first letter on column2, instead adds the
text within column 2 and last line isnŽt printed. What could it be? Below the output I receive: pseudocoder,
I appreciate really your effort in try to help me. Thanks really and certainly from each contribution we learned a lot.
But I donŽt know why it doesnŽt work for me. I copied the "capitalized" function code in a file called "capitalized"
and the input file saved in the same directory named only "file" like in your script. Then I ran the awk script until last
line (rm tfile1 ...) and creates this temp files with permission denied access. They cannot remove and the ofile is created
with 0 KB. IŽm not sure why this happens.
If user chosen to tolower then it should convert file name to lower or vice versa. when file names converted it should put into appropriate subdirectories.
e.g when files converted it then seperate them out with file etension where it will seperate them out . such as file.pdf, phone.doc both... (1 Reply)
Hi I have two questions.
1. how to convert "EverythingIsFine" to "Everything Is Fine" in a txt file.
2. how to convert everything to upper case letter and reverse, I hope there is a general purpose script for this. (1 Reply)
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)
There is a script where we pass the parameter in lower case:
say: . ./scriptName pArameter
#!/bin/ksh
echo "`date` Entering $0 Reloading the $1 table "
mname1=$1
(code to login MYSQL Database)
Truncate table $mname1;
exit
!
Since now there is a limitaion of MYSQL that it accept... (5 Replies)
The title pretty much defines the problem. I have text files that are all in caps. I would like to convert them to lowercase, but have the first letter of the first word in each sentence in uppercase.
I already have SED on the server for fixing / tweaking text files, but I'm open to other... (5 Replies)
Hi,
im able to search for string in a file (ex: grep -w "$a" input.txt). but i have to search for the uppercase of a string in a file where upper case of the file content matches something like below.
where upper("$a")== converted to upper case string in (input.txt)
can someone please provide... (5 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 OPENSOLARIS
toupper
toupper(3C) Standard C Library Functions toupper(3C)NAME
toupper - transliterate lower-case characters to upper-case
SYNOPSIS
#include <ctype.h>
int toupper(int c);
DESCRIPTION
The toupper() function has as a domain a type int, the value of which is representable as an unsigned char or the value of EOF. If the
argument has any other value, the argument is returned unchanged. If the argument of toupper() represents a lower-case letter, and there
exists a corresponding upper-case letter (as defined by character type information in the program locale category LC_CTYPE), the result
is the corresponding upper-case letter. All other arguments in the domain are returned unchanged.
RETURN VALUES
On successful completion, toupper() returns the upper-case letter corresponding to the argument passed.
ERRORS
No errors are defined.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
|ATTRIBUTE TYPE |ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|CSI |Enabled |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO _toupper(3C), setlocale(3C), attributes(5), standards(5)SunOS 5.11 14 Aug 2002 toupper(3C)