06-03-2009
Can Pls Post exactly what is your input and the output your expecting in the formatted fashion.I hope then you will get more responses.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am hoping someone can provide some guidance on using context based search and replace to search for a pattern and then do a search and replace in the line that follows it. For example, I have a file that looks like this:
<bold>bold text
</italic>
somecontent
morecontent... (3 Replies)
Discussion started by: charissaf67
3 Replies
2. Shell Programming and Scripting
Hi
This is what I was trying to do, comment one line and add something different in a new line right next.
This is the command I want to do
more .profile | sed 's,STRING1, #STRING1 NEWLINE STRING2,'
(I´m using ',' because my string is something like this
exec... (3 Replies)
Discussion started by: alcalina
3 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I have a file and in that, I want to search for a aprticular word and then replace another word in the same line with something else.
Example: In file abc.txt, there is a line
<host oa_var="s_hostname">test</host>
I want to search with s_hostname text and then replace test with... (2 Replies)
Discussion started by: sshah1001
2 Replies
4. Shell Programming and Scripting
Hi there!
I am really enjoying working with sed. I am trying to come up with a sed command to replace some occurrences (not all) in the same line, for instance:
I have a command which the output will be:
200.300.400.5 0A 0B 0C 01 02 03
being that the last 6 strings are actually one... (7 Replies)
Discussion started by: ppucci
7 Replies
5. Shell Programming and Scripting
Hi guys,
got a problem here with sed on the command line.
If i have a string as below:
online xx:wer:xcv: sdf:/asdf/http:https-asdfd
How can i match the pattern "http:" and replace the start of the string to the pattern with null?
I tried the following but it doesn't work:
... (3 Replies)
Discussion started by: DrivesMeCrazy
3 Replies
6. Shell Programming and Scripting
Hi
I am trying to search and replace a multi line pattern in a php file using awk.
The pattern starts with
<div id="navbar">
and ends with
</div>
and spans over an unknown number of lines.
I need the command to be a one liner.
I use the "record separator" like this :
awk -v... (8 Replies)
Discussion started by: louisJ
8 Replies
7. Shell Programming and Scripting
Hi,
I am have one file with a line
group=project_live
I need to replace it with line
group=project_live_support
before I execute some application related script.
The potentianl problem is when I replace this with sed using command
sed... (2 Replies)
Discussion started by: bhaskar_m
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have file which has got the following content
sam 123 LD 41
sam 234 kp
sam LD 41
kam pu
sam LD 61
Now... (1 Reply)
Discussion started by: muchyog
1 Replies
9. Shell Programming and Scripting
I have a log file that contains many lines but contains the following line three times:
related_pin : "t_bypass";
Here are the 3 occurrences and the two lines after from my file.txt:
related_pin : "t_bypass";
sdf_cond : "rstq_b";
timing_sense : negative_unate;
... (6 Replies)
Discussion started by: bobbygb2003
6 Replies
10. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
LEARN ABOUT OSF1
xmfontlistentryload
XmFontListEntryLoad(3X) XmFontListEntryLoad(3X)
NAME
XmFontListEntryLoad - A font list function that loads a font or creates a font set and creates an accompanying font list entry
SYNOPSIS
#include <Xm/Xm.h>
XmFontListEntry XmFontListEntryLoad (display, font_name, type, tag)
Display *display;
char *font_name;
XmFontType type;
char *tag;
DESCRIPTION
XmFontListEntryLoad loads a font or creates a font set based on the value of the type argument. It creates and returns a font list entry
that contains the font or font set and the specified tag.
If the value of type is XmFONT_IS_FONT, the function uses the XtCvtStringToFontStruct routine to convert the value of font_name to a font
struct. If the value of type is XmFONT_IS_FONTSET, the function uses the XtCvtStringToFontSet converter to create a font set in the current
locale. XmFontListEntryLoad creates a font list entry that contains the font or font set derived from the converter. For more information
about XtCvtStringToFontStruct and XtCvtStringToFontSet, see X Toolkit Intrinsics--C Language Interface. Specifies the display where the
font list will be used. Specifies an X Logical Font Description (XLFD) string, which is interpreted either as a font name or as a base
font name list. A base font name list is a comma-separated and NULL-terminated string. Specifies whether the font_name argument refers to
a font name or to a base font name list. Valid values are XmFONT_IS_FONT and XmFONT_IS_FONTSET. Specifies the tag of the font list entry
to be created. The tag may be specified as XmFONTLIST_DEFAULT_TAG. XmFONTLIST_DEFAULT_TAG is used to identify the default font list element
in a font list when specified as part of a resource.
RETURN VALUE
If the specified font is not found, or the specified font set can not be created, returns NULL; otherwise, returns a font list entry.
SEE ALSO
XmFontList(3X), XmFontListAppendEntry(3X), XmFontListEntryCreate(3X), XmFontListEntryFree(3X), XmFontListEntryGetFont(3X), XmFontListEn-
tryGetTag(3X), XmFontListRemoveEntry(3X)
XmFontListEntryLoad(3X)