Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Pavel Vasilyev                       2:5020/1042.65 10 Sep 2005  13:17:24
 To : All
 Subject : Unix Tip: ANOTHER CASE TRANSLATION
 -------------------------------------------------------------------------------- 
 
                UNIX HOT TIP
 
       Unix Tip 2441 - September  7, 2005
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 ANOTHER CASE TRANSLATION
 
 If you have occasion where 
 you need to translate upper 
 case to lower and vice 
 versa, and happen to run a 
 ksh, enter the following 
 functions into your .profile:
 
 function trans
 {
 tr '[:upper:]' '[:lower:]' < $1 > $2
 }
 function TRANS
 {
 tr '[:lower:]' '[:upper:]' <$1 > $2
 }
 The first function will 
 translate all uppercase 
 letters in the first file 
 (argument) to lowercase in 
 the second file.
 
 The second function TRANS does the exact opposite.
 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 --- 
  * Origin: * --------------------------------------------- * (2:5020/1042.65)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Unix Tip: ANOTHER CASE TRANSLATION   Pavel Vasilyev   10 Sep 2005 13:17:24 
Архивное /ru.linux/45684322dce5.html, оценка 1 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional