The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-28-2008
amit1_x amit1_x is offline
Registered User
 

Join Date: Apr 2008
Posts: 13
ESC sequence on RHEL5

We have migrated one of servers from RH 2.1 to RHEL5 , some of the scripts on our machine use escape sequence to print output . Om RH 2.1 we were using echo
Code:
echo "\033[01;31m ERROR  \033[m" 
ERROR
, which would give output ERROr in red . However the script does not work properly with RH5 and gives
Code:
\033[01;31m error \033[m
as output . I am not sure what escape sequence should i use
Reply With Quote
Forum Sponsor