11-12-2004
Using ksh...
read name
typeset -u show=$name
echo $show
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings & Happy New Years To All!
A client of mine FTP'ed their files up to the server and it all ended up being in UPPERCASE when it all should be in lowercase. Is there a builtin command or a script anyone knows of that will automagically convert all files to lowercase?
Please advise asap... (4 Replies)
Discussion started by: webex
4 Replies
2. UNIX for Dummies Questions & Answers
If in a script I am taking an input (R201) for example and assigning it to a variable, how would I change the R to uppercase if it was keyed in as r201? I can't seem to get it to work with toupper (4 Replies)
Discussion started by: kirkm76
4 Replies
3. Shell Programming and Scripting
Hi,
I am trying to convert the $i in loop from lower to upper case but getting error like ' awk: 0602-502 The statement cannot be correctly parsed. The source line is 1.' ..
Requirement: I have many table in script XXX.sql which starting with 'ABC_','AbC_','aBc_' etc.. same thing for table... (2 Replies)
Discussion started by: subrat
2 Replies
4. Shell Programming and Scripting
should be a simple question, I am trying to uppercase every first character in a word on the list.
abc
google
cnn
services
My first thought was sed 'y/^/^/', but it changed all the characters, not just the first character.
any thoughts? (7 Replies)
Discussion started by: fedora
7 Replies
5. AIX
Inside a script I have 2 variables COMP=cy and PT=t. further down the same script I require at the same line to call those 2 variables the first time uppercase and after lowercase ${COMP}${PT}ACE,${COMP}${PT}ace. Can somebody help me
Thanks in advance
George Govotsis (7 Replies)
Discussion started by: ggovotsis
7 Replies
6. UNIX for Dummies Questions & Answers
i have no variable and no file
i just want to convert AJIT to ajit
with some command in UNIX
can anybody help (4 Replies)
Discussion started by: ajit.yadav83
4 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
i have a file and i want to convert all uppercase letters to lowercase letters which are in my file.
how can i do this.
Thanx (3 Replies)
Discussion started by: temhem
3 Replies
8. Shell Programming and Scripting
Hi I have a string(can be mix of upper and lower case) and need the first three chars of the string to be converted to uppercase (4 Replies)
Discussion started by: Northpole
4 Replies
9. Shell Programming and Scripting
Hello,
I have a list of files in a directory whose names are all in uppercasse, including the file format for eg *.MP3 . I would like to convert these to the normal way we write it ie ABC.MP3 to be converted to Abc.mp3 . I know that this can be done manually by using a lot of "mv" or rename... (6 Replies)
Discussion started by: ajayram
6 Replies
10. Shell Programming and Scripting
Hello,
This is not a problem specific question.
While surfing on google to find a solution for the latest error messages I have received from command line, I found some suggestions regarding usage of linux commands:
Could it be a problem specific comment or in most cases, `` causes issue?... (6 Replies)
Discussion started by: baris35
6 Replies
LEARN ABOUT PHP
mb_strtoupper
MB_STRTOUPPER(3) 1 MB_STRTOUPPER(3)
mb_strtoupper - Make a string uppercase
SYNOPSIS
string mb_strtoupper (string $str, [string $encoding = mb_internal_encoding()])
DESCRIPTION
Returns $str with all alphabetic characters converted to uppercase.
PARAMETERS
o $str
- The string being uppercased.
o $encoding
-The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
RETURN VALUES
$str with all alphabetic characters converted to uppercase.
UNICODE
For more information about the Unicode properties, please see http://www.unicode.org/unicode/reports/tr21/.
By contrast to strtoupper(3), 'alphabetic' is determined by the Unicode character properties. Thus the behaviour of this function is not
affected by locale settings and it can convert any characters that have 'alphabetic' property, such as a-umlaut (a).
EXAMPLES
Example #1
mb_strtoupper(3) example
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = mb_strtoupper($str);
echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>
Example #2
mb_strtoupper(3) example with non-Latin UTF-8 text
<?php
$str = "Txiotn a
nE Baos unuvn yn, dpaokeCei unp vw0po kuvs";
$str = mb_strtoupper($st_, 'UTF-8'); _ _ _ _
echo $str; // Prints TXI>TH A/TTHH BAO> YHMNH | H, /PA>KE/EI YTTP NOOPO KYN>
?>
SEE ALSO
mb_strtolower(3), mb_convert_case(3), strtoupper(3).
PHP Documentation Group MB_STRTOUPPER(3)