The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bourne shell - lower case a string buechler66 UNIX for Dummies Questions & Answers 5 05-08-2008 01:00 PM
Script needed to select and delete lower case and mixed case records abhilash mn Shell Programming and Scripting 1 03-17-2008 08:00 AM
Accepting Upper and Lower case lweegp Shell Programming and Scripting 8 12-08-2007 06:57 PM
UNIX command to reverese lower and upper case rfourn Shell Programming and Scripting 6 12-07-2007 10:33 PM
Upper And Lower Case pciatto Shell Programming and Scripting 1 04-29-2002 12:17 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-28-2002
dchalavadi dchalavadi is offline
Registered User
  
 

Join Date: May 2002
Posts: 3
lower case to upper case string conversion in shell script

How can convert a Lower case variable value to an upper case in the kron shell script.
  #2 (permalink)  
Old 05-28-2002
thehoghunter
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
Check the man page for the tr command - you can use it to change a variable also.

The next example translates all lower-case characters in
file1 to upper-case and writes the results to standard
output.

tr "[:lower:]" "[:upper:]" <file1
  #3 (permalink)  
Old 05-28-2002
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
With the korn shell, you can use typeset to make the shell do this without a separate process:

typeset -u two
one="something"
two=$one
echo $one $two

Anything stored in the variable "two" will be changed to upper case.
  #4 (permalink)  
Old 05-29-2002
witt
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
You can use the "dd" command too :

dd if=original_file of=new_file conv=ucase

I hope help you

Witt
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0