how can i shorten this??? - 25/01/05 05:47 PM
hello again,
i'm hoping someone could help me out with shortening this alias a bit :
as you can see this charcater string is quite long but, is neccesary to allow the non letter charcters through...
so, can someone help??
thanks in advance
i'm hoping someone could help me out with shortening this alias a bit :
Code:
alias -l colorcap { if (À,Á,Â,Ã,Ä,Å,ß,Ç,Ð,È,É,Ê,Ê,Ë,Ì,Í,Î,Ï,Ñ,Ò,Ó,Ô,Õ,Ö,Ù,Ú,Û,Ü,Ý,¥, $& à,á,â,ã,ä,å,ç,è,é,ê,ë,ì,í,î,ï,ñ,ò,ó,ô,õ,ö,ù,ú,û,ü,ý,ÿ,ø,¹,²,³,×,÷,¢,£,¼,½,¾, $& ª,º,°,©,®,¡,¿,¤,§,«,»,¬,±,µ,¶,þ,Þ,Æ,æ,ð,¸,‘,’ isin 1-) { var %v = 1, %u while $gettok($1,%v,32) != $null { %u = %u %ac1 $+ $left($v1,1)) $+ %ac2 $+ $mid($v1,2) inc %v } return %u } else { var %v = 1, %u while $gettok($1,%v,32) != $null { %u = %u %ac1 $+ $upper($left($v1,1)) $+ %ac2 $+ $mid($v1,2) inc %v } return %u } }
as you can see this charcater string is quite long but, is neccesary to allow the non letter charcters through...
so, can someone help??
thanks in advance