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
Lowercase to Uppercase ggovotsis AIX 7 10-16-2008 10:07 AM
UPPERCASE to lowercase with no overwriting? lgd923 Shell Programming and Scripting 1 08-21-2008 08:13 AM
Need to change filenames in a particular directory from lowercase to UPPERCASE Duke_Lukem UNIX for Dummies Questions & Answers 7 01-07-2008 06:32 PM
How convert lowercase or uppercase Alex20 Shell Programming and Scripting 5 03-07-2005 07:07 AM
uppercase to lowercase webex Shell Programming and Scripting 4 01-03-2002 02:15 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 10-16-2008
ajit.yadav83 ajit.yadav83 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 13
uppercase to lowercase

i have no variable and no file
i just want to convert AJIT to ajit
with some command in UNIX
can anybody help
  #2 (permalink)  
Old 10-16-2008
manosubsulo manosubsulo is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 87
Code:
echo "AJIT" | tr [A-Z] [a-z]
  #3 (permalink)  
Old 10-16-2008
ajit.yadav83 ajit.yadav83 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 13
thanks both of u
it worked
thanks a lot!!!!!!!!!
  #4 (permalink)  
Old 10-16-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
If you are using ksh, you can do the conversion without calling an external utility such as tr i.e.
Code:
orgvar="AJAX"
echo $orgvar
typeset -l newvar=$orgvar
echo $newvar
  #5 (permalink)  
Old 10-16-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Wink Is this what you are trying to do?

Code:
> echo "AJIT"
AJIT
> echo "AJIT" | tr "[:upper:]" "[:lower:]"
ajit
> echo "AJIT" | tr "[A-Z]" "[a-z]"
ajit
>
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 12:22 AM.


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