
03-18-2009
|
|
Shell programmer, author
|
|
|
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
|
|
Quote:
Originally Posted by Trump
thnx for script ,
can you tell me how to set first four characters to upper case?
|
Code:
a=$( printf "%s\n" "$a" | tr [:lower:] [:upper:] )
In ksh:
In bash4.0:
|