Bold and Underline - not displyed in more/less/vi


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Bold and Underline - not displyed in more/less/vi
# 1  
Old 08-20-2009
Bold and Underline - not displyed in more/less/vi

I have a script main.shl which has few lines like this

#bold
tput smso
echo "\t\tsome statement\t\t"
tput rmso

I am executing the main.shl from the shell and redirected its output to a separate file like this
$main.shl >main.log 2>&1 &

once after running this script, if I "cat" the main.log, the "some statements" are displayed in Bold.
but if I open it thro "more","less" or "vi", the ESC characters are shown aroun the "Somestatements" and it is not looking bold as it is in"cat"

Why this happens?

If I want to display the bold part even when seeing thro more/less, then what I need to do

Thx,
Ramkrix
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to insert header with underline?

How to insert header with underline AM able to insert only header not underline sed '1i NAME COUNTRY' test.txt input file UK 1234 USA 2354 AUS 2253 IND 4256 Output file NAME COUNTRY_CODE ---- ------------ UK 1234 USA 2354 AUS 2253 IND 4256 (5 Replies)
Discussion started by: Kalia
5 Replies

2. Shell Programming and Scripting

Help with underline text based on specific region

Input file 2 5 ASFGEWTEWRQWEQ 10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ 1 6 WRQTQWTQTQWTQT Desired output file 2 5 ASFGEWTEWRQWEQ 10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ 1 6 WRQTQWTQTQWTQT Column 1 is the start region of underline the text in column 3; Column 2 is the end region of... (13 Replies)
Discussion started by: cpp_beginner
13 Replies

3. Shell Programming and Scripting

Color Underline and Bold letter in shell script

Hi All, This is my first port..... I am using AIX 5L, installed 10g database. On daily basis we takes rman backup. This backup status info strored in a log file. I write a script to know the status of back means I will fire this script and this script will send a mail to me. #!/bin/bash... (16 Replies)
Discussion started by: mcagaurav
16 Replies

4. Shell Programming and Scripting

Bold Characters

Hi All, How to make the characters bold in k shell. like for example "File is too large to view" to "File is too large to view" is it like echo "File is too large to view" Please advice and samples (18 Replies)
Discussion started by: rajeshorpu
18 Replies

5. Shell Programming and Scripting

how to display in bold

Hi, i am using mailx option to send mail from unix In the body of the mail i want certain numbers to be displayed in bold Is there any way to do it If so, can anyone help me in this regard. (2 Replies)
Discussion started by: trichyselva
2 Replies

6. Shell Programming and Scripting

how can i bold a text

Dear i want to bold a text using shell script. please give sample.. Thanks rex (1 Reply)
Discussion started by: jrex1983
1 Replies

7. UNIX for Dummies Questions & Answers

What does a bold filename in ls mean?

I am ssh'd into my box using a terminal emulation of vt100. When I do a directory listing (ls) some of the file names are bold. I know that directories are also in bold, but these are not directories. What does a bolded filename mean? This seems like such a basic question, but I've spent 20... (3 Replies)
Discussion started by: nunemaj
3 Replies

8. Shell Programming and Scripting

Underline

i want to print underline under a text using shell or awk.can any body help me regarding this problem? i hav tried with echo -e -n "\033$4}' like expected output is 123 456 12 122 567 13 211 087 14 311 987 15 like the avove Thank you regards, Pankaj. (2 Replies)
Discussion started by: panknil
2 Replies

9. UNIX for Dummies Questions & Answers

How to underline/bold and how to align output

Hi, I work with AIX 5 and have two basic questions: 1) How do I underline/bold a word in a text output? Any way to do it with echo command? basic example: echo "FOLDER " >> folder.txt ( I wish the word FOLDER to be underlined and bold). 2) Suppose I have the following pipe delimited... (1 Reply)
Discussion started by: clara
1 Replies

10. UNIX for Dummies Questions & Answers

underline character in vi editor

I want to print a man page for a command in unix, this is what I did man command > command.txt but when I view the output file command.txt I found there are lot of _^H characters that in the man page are actually underline character, how can I replace this _^H with underline character? ... (2 Replies)
Discussion started by: Melissa
2 Replies
Login or Register to Ask a Question
TPUT(1) 						    BSD General Commands Manual 						   TPUT(1)

NAME
tput, clear -- terminal capability interface SYNOPSIS
tput [-T term] attribute ... clear DESCRIPTION
The tput utility makes terminal-dependent information available to users or shell applications. When invoked as the clear utility, the screen will be cleared as if tput clear had been executed. The options to tput are as follows: -T The terminal name as specified in the termcap(5) database, for example, ``vt100'' or ``xterm''. If not specified, tput retrieves the ``TERM'' variable from the environment. The tput utility outputs a string for each attribute that is of type string; a number for each of type integer. Otherwise, tput exits 0 if the terminal has the capability and 1 if it does not, without further action. If an attribute is of type string, and takes arguments (e.g. cursor movement, the termcap ``cm'' sequence) the arguments are taken from the command line immediately following the attribute. The following special attributes are available: clear Clear the screen (the termcap(5) ``cl'' sequence). init Initialize the terminal (the termcap(5) ``is'' sequence). longname Print the descriptive name of the user's terminal type. reset Reset the terminal (the termcap(5) ``rs'' sequence). EXIT STATUS
The exit status of tput is as follows: 0 If the last attribute attribute argument is of type string or integer, its value was successfully written to standard output. If the argument is of type boolean, the terminal has this attribute. 1 This terminal does not have the specified boolean attribute. 2 Usage error. 3 No information is available about the specified terminal type. SEE ALSO
termcap(5), terminfo(5) STANDARDS
The tput utility conforms to IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
The tput utility appeared in 4.4BSD. BUGS
The tput utility cannot really distinguish between different types of attributes. Some termcap entries depend upon having a '%' in them that is just a '%' and nothing more. Right now we just warn about them if they do not have a valid type declaration. These warnings are sent to stderr. BSD
June 15, 2002 BSD