underline character in vi editor


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers underline character in vi editor
# 1  
Old 02-05-2002
Question 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?

Thank you for any advise!
# 2  
Old 02-05-2002
That _^H is the underline character followed by a backspace character. Most printers will allow something like "_^Hx" which results in a underlined x. But in vi you will see the actual characters.

If you want a man page that looks good in vi, you want to delete the underlines. Here is a way:
man command | col -b > command.txt
# 3  
Old 02-05-2002
MySQL

Hi Perderabo, thank you very much, the output file looks good in vi now. thanks.Smilie
 
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. UNIX for Dummies Questions & Answers

Ctrl-V + Ctrl-J for newline character does not work inside vi editor

Hi friends, I am trying to add a newline char ('\n') between the query and the commit statement in the following shell script. #! /bin/sh echo "select * from tab; commit;" > data.sql I have tried typing in "Ctrl-V + Ctrl-J" combination which has inserted ^@ (NUL) character but the commit... (1 Reply)
Discussion started by: royalibrahim
1 Replies

4. Shell Programming and Scripting

@ character in vi editor

Hi, I have received a file from in ASCII format. When I am viewing in the vi editor I could see the content like below 000700006098204 983004100 09910LATINA 09920LT 09930380 @ ... (4 Replies)
Discussion started by: Satyak
4 Replies

5. UNIX for Dummies Questions & Answers

"vi" text editor character encoding?

Hi! I've got a shell account on a FreeBSD machine. It doesn't have 'vim' installed, but only the original 'vi' text editor ("Version 1.79 (10/23/96) The CSRG, University of California, Berkeley.") So, in PuTTY I've chosen "UTF-8 translation" to have my non-english characters appear correctly.... (2 Replies)
Discussion started by: Gew
2 Replies

6. Shell Programming and Scripting

Appending character "0" in vi editor for all lines between 1 and 40.

I have to append character "0" for lines between 1 and 40 in a file. I tried the following code. :s/^0,1,40/g Input: Output: (2 Replies)
Discussion started by: pinnacle
2 Replies

7. Shell Programming and Scripting

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... (0 Replies)
Discussion started by: ramkrix
0 Replies

8. SuSE

<92> unknown character when opened with Vi editor in Linux

Hi, One of our applications has this string : xxx ¿ yyyyy We are on Linux Suse and the character set is en_US.UTF-8. Our requirement is to replace this special character ¿ with a space. When we open the file containing this string using VI editor we see the same character as <92> xxx... (10 Replies)
Discussion started by: LinuxTest
10 Replies

9. 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

10. 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
Login or Register to Ask a Question