03-15-2013
When editing that file manually, what do you modify/insert to achive underline?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
Hi,
I am having trouble converting a text file. I have been working for this whole day now, still i couldn't make it.
Here is how the text file looks:
_______________________________________________________
DEVICE STATUS INFORMATION FOR LOCATION 1:
OPER STATES: Disabled E:Enabled ... (5 Replies)
Discussion started by: Issemael
5 Replies
4. Shell Programming and Scripting
I regularly extract lines of text from files based on the presence of a particular keyword; I place the extracted lines into another text file. This takes about 2 hours to complete using the "sort" command then Kate's find & highlight facility.
I've been reading the forum & googling and can find... (4 Replies)
Discussion started by: DionDeVille
4 Replies
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
I am attempting to insert multiple lines of text into a specific place in a text file based on the lines above or below it.
For example, Here is a portion of a zone file.
IN NS ns1.domain.tld.
IN NS ns2.domain.tld.
IN ... (2 Replies)
Discussion started by: cdn_humbucker
2 Replies
7. Shell Programming and Scripting
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies
8. Shell Programming and Scripting
Input file format:
/tag="ABL"
/note="abl homolog
2
/tag="ABLIM1"
/note="actin binding LIM 1
/tag="ABP1"
/note="amiloride binding protein 1 (amine oxidase (copper-
containing))
/tag="ABR"
/note="active BCR-related
/tag="AC003042.1"
/note="SDR family member 11
precursor
.
.
. (4 Replies)
Discussion started by: perl_beginner
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a tab delimited text file from which I want to cut out specific columns. If the second column equals one, I want to cut out columns 1 and 5 and 6. If the second column equals two, I want to cut out columns 1 and 5 and 7. How do I go about doing that? Thanks! (4 Replies)
Discussion started by: evelibertine
4 Replies
10. Shell Programming and Scripting
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
LEARN ABOUT CENTOS
xmstringdrawunderline
XmStringDrawUnderline(library call) XmStringDrawUnderline(library call)
NAME
XmStringDrawUnderline -- A compound string function that underlines a string drawn in an X Window
SYNOPSIS
#include <Xm/Xm.h>
void XmStringDrawUnderline(
Display * d,
Window w,
XmRenderTable rendertable,
XmString string,
GC gc,
Position x,
Position y,
Dimension width,
unsigned char alignment,
unsigned char layout_direction,
XRectangle * clip,
XmString underline);
DESCRIPTION
XmStringDrawUnderline draws a compound string in an X Window. If the substring identified by underline can be matched in string, the sub-
string will be underlined. Once a match has occurred, no further matches or underlining will be done. Only the first text component of
underline is used for matching.
If a compound string segment uses a rendition that contains a font set, the graphic context passed to this routine will have the GC font
member left in an undefined state. The underlying XmbStringDraw function called by this routine modifies the font ID field of the GC passed
into it and does not attempt to restore the font ID to the incoming value. If the compound string segment is not drawn using a font set,
the graphic context must contain a valid font member. Graphic contexts created by XtGetGC are not accepted by this routine; instead, use
XtAllocateGC to create a graphic context.
d Specifies the display.
w Specifies the window.
rendertable
Specifies the render table.
string Specifies the string.
gc Specifies the graphics context to use.
x Specifies a coordinate of the rectangle that will contain the displayed compound string.
y Specifies a coordinate of the rectangle that will contain the displayed compound string.
width Specifies the width of the rectangle that will contain the displayed compound string.
alignment Specifies how the string will be aligned within the specified rectangle. It is one of XmALIGNMENT_BEGINNING, XmALIGNMENT_CENTER,
or XmALIGNMENT_END.
layout_direction
Controls the direction in which the segments of the compound string will be laid out. It also determines the meaning of the
alignment parameter.
clip Allows the application to restrict the area into which the compound string will be drawn. If it is NULL, clipping will be deter-
mined by the GC.
underline Specifies the substring to be underlined.
RELATED
XmStringCreate(3).
XmStringDrawUnderline(library call)