Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Operating Systems > Unix > Shell Scripting > ksh     

Setting variables in ksh


typeset -l	lower case
typeset -u	upper case
typeset -r	read only variable (read only variable cannot be unset)
typeset -i	variable of type integer (faster execution, ksh checks the validity of value)
integer		the same as typeset -i
typeset -Ln	left justified (set field width to n)
typeset -LZn	left justified, set field width to n and strip leading zeros
typeset -Rn	right justified (set field width to n)
typeset -RZn	right justified, set field width to n and fill with leading zeros
typeset -t	set the user defined attributes for a variable
typeset -x	automatically export variable (like export)
typeset +i	remove the integer type (or any other type exept -r read only)


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

       Rate this tip:    

Start discussion or add comment to this tip

  Details
Tip reference : #49
views : 652
Added on : 11/09/05
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (172)
 
 
Next >>
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com