To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.
hi
i have a file containing lines like
word1,word2,word3,word4,..
word4,word5,word3,word6,...
now i need to make it to look like
word1
word2
word3
word4
.
.
.
in other words ','(comma) is replaced with new line. (5 Replies)
I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this.
For example:
split -l 3000000 filename.txt
This is very slow and it splits the file with 3 million records in each... (10 Replies)
Hi All,
Can someone please help me write a script for the following requirement in awk, grep, sed or perl.
Buuuu xxx bbb
Kmmmm rrr ssss uuuu
Kwwww zzzz ccc
Roooowwww eeee
Bxxxx jjjj dddd
Kuuuu eeeee nnnn
Rpppp cccc vvvv cccc
Rhhhhhhyyyy tttt
Lhhhh rrrrrssssss
Bffff mmmm iiiii
Ktttt... (5 Replies)
Hi,
i have a file say file1 having following data
/abc/def:ghi/jkl/ some other text
Now i want to extract only ghi/jkl/using sed, can some one please help me.
Thanks
Sarbjit (2 Replies)
Hi,
I need help to split lines from a file into multiple files.
my input look like this:
13
23 45 45 6 7
33 44 55 66 7
13
34 5 6 7 87
45 7 8 8 9
13
44 55 66 77 8
44 66 88 99 6
I want to split every 3 lines from this file to be written to individual files. (3 Replies)
Hello;
I have a file consists of 4 columns separated by tab. The problem is the third fields. Some of the them are very long but can be split by the vertical bar "|". Also some of them do not contain the string "UniProt", but I could ignore it at this moment, and sort the file afterwards. Here is... (5 Replies)
How can I split following input into stwo strings:
Input:
1^~^2^~^3^~^4^~^5^~^6^~^7^~^8^~^9
Output:
$string1 = 1^~^2^~^
$string2 = 3^~^4^~^5^~^6^~^7^~^8^~^9
Note: the length of string may vary, say upto 15. String 1 will contain only first two. string2 will contain... (10 Replies)
I am trying to run the awk below. My question is when I split the input, then run anotherawk to perform a calculation using that splitas the input there are no issues. When I try to combine them the output is not correct, is the split not working or did I do it wrong? Thank you :).
input
... (8 Replies)
Dear Users,
Appreciate your help if you could help me with splitting a large file > 1 million lines with sed or awk. below is the text in the file
input file.txt
scaffold1 928 929 C/T +
scaffold1 942 943 G/C +
scaffold1 959 960 C/T +... (6 Replies)
Greetings,
i have a string that looks like
Network "123" "ABC"
i need to make it look like:
Network "123"
Network "ABC"
Help please?
Thanks again
Please use CODE tags when displaying sample input, sample output, and code segments (as required by forum rules). (2 Replies)
Discussion started by: hoyanet
2 Replies
LEARN ABOUT DEBIAN
xpsetcontext
XpSetContext(3Xp) XPRINT FUNCTIONS XpSetContext(3Xp)NAME
XpSetContext - Sets or unsets a print context with the specified display connection to the X Print Server.
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
void XpSetContext ( display, print_context )
Display *display;
XPContext print_context;
ARGUMENTS
display
Specifies a pointer to the Display structure; returned from XOpenDisplay.
print_context
A pre-existing print context on the same X Server.
DESCRIPTION
XpSetContext sets the print context for a display connection. All subsequent print operations that do not explicitly take a print context-
id (for example, XpStartJob) on display will use and act upon the print context set by this call, until the print context is unset or XpDe-
stroyContext is called. The print context can be set and used on multiple jobs, if not destroyed.
If print_context is None, XpSetContext will unset (disassociate) the print context previously associated with display. If there was no pre-
viously associated print context, no action is taken. The content of the formerly associated print context is not affected by this call,
and other display connections may continue to use the print context.
Since font capabilities can vary from printer to printer, XpSetContext may modify the list of available fonts (see XListFonts) on display,
and the actual set of usable fonts (see XLoadFont). A unique combination of fonts may be available from within a given print context; a
client should not assume that all the fonts available when no print context is set will be available when a print context is set.
When a print context is set on a display connection, the default behavior of ListFonts and ListFontsWithInfo is to list all of the fonts
normally associated with the X print server (i.e. fonts containing glyphs) as well as any internal printer fonts defined for the printer.
The xp-listfonts-modes attribute is provided so that applications can control the behavior of ListFonts and ListFontsWithInfo and is typi-
cally used to show just internal printer fonts. Using only internal printer fonts is useful for performance reasons; the glyphs associated
with the font are contained within the printer and do not have to be downloaded.
If the value of xp-listfonts-modes includes xp-list-glyph-fonts, ListFonts and ListFontsWithInfo will include all of the fonts available to
the server that have glyphs associated with them. If the value of xp-listfonts-modes includes xp-list-internal-printer-fonts, then List-
Fonts and ListFontsWithInfo will include all of the fonts defined as internal printer fonts.
When the print context is unset or XpDestroyContext is called, the available fonts on display revert back to what they were previously.
DIAGNOSTICS
XPBadContext A valid print context-id has not been set prior to making this call.
SEE ALSO XpDestroyContext(3Xp), XpStartJob(3Xp)X Version 11 libXp 1.0.0 XpSetContext(3Xp)