04-15-2014
What error/output do you get? What's your OS?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a sample file as shown below --
id parent name dba
-----------------------------------... (7 Replies)
Discussion started by: sumirmehta
7 Replies
2. UNIX for Dummies Questions & Answers
Hi, I am trying to sort a file first by the string column, then by the number column.
file:
xyz1 2
xyzX 4
xyz2 1
xyz13 3
xyz11 5
xyz13 10
xyz1 1
xyz10 1
xyz4 2
result should be
xyz1 1
xyz1 2 ... (3 Replies)
Discussion started by: fargo
3 Replies
3. UNIX for Dummies Questions & Answers
Hi Everybody,
I am just new to UNIX as well as to this forum. I have a text file with 10,000 coloumns and each coloumn contains values separated by space. I want to separate them into new coloumns..the file is something like this
as ad af 1 A
as ad af 1 D
...
...
1 and A are in one... (7 Replies)
Discussion started by: Unilearn
7 Replies
4. Shell Programming and Scripting
Hi,
I am very new to Unix script. Suppose i have a file with column header:
NAME1 NAME2 Address Tel
And I always need to make a file with column header:
ID NAME1 NAME2 EMail Address Tel
For the columns that do not exist in the file, I would still like to make a column with blank.
... (11 Replies)
Discussion started by: nightrider
11 Replies
5. UNIX for Dummies Questions & Answers
I have a text file that has three columns. But at the end of the text file, there are trailing lines that have missing second and third columns:
4 0.04972604 KLHL28
4 0.0497332 CSTB
4 0.04979822 AIF1
4 0.04983331 DECR2
4 0.04990344 KATNB1
4
4
4
4
How can I remove the trailing... (3 Replies)
Discussion started by: evelibertine
3 Replies
6. Shell Programming and Scripting
File will have two columns key column and second column which is pipe separated and that need to be sorted.
Below is input file.
1, D|B|A|C
2, C|A|B
3, E|A|F|G|H|D|B|C
4, A|B|D|C|F
Output should be
1, A|B|C|D
2, A|B|C
3, A|B|C|D|E|F|G|H
4, A|B|D|C|F (11 Replies)
Discussion started by: girish119d
11 Replies
7. Shell Programming and Scripting
Hi,
i have a csv file which have headers and values of it like below :
headers --> CI Ref SerialNumber LastScanDate
values --> VMware-42,VMware-42,Tue, 20 May 2014 11:03:44 +0000
i want to have a above csv in below format :
headers --> CI Name CI Description CI Ref... (6 Replies)
Discussion started by: omkar.jadhav
6 Replies
8. Shell Programming and Scripting
Hello,
I have some tab delimited files that may contain blank columns. I would like to delete the blank columns if they exist. There is no clear pattern for when a blank occurs.
I was thinking of using sed to replace instances of double tab with blank,
sed 's/\t\t//g'
All of the examples... (2 Replies)
Discussion started by: LMHmedchem
2 Replies
9. Shell Programming and Scripting
I have a file with the following format:
X|High|2|GIC|DM||XHM|||6 Months
X|Moderate|2|GIC|DM||XHM|||6 Months
X|High|2|GCM|DM||XSF|||6 Months
X|Med|2|GCM|DM||XSF|||6
Here there are ten columns but I need to print rows having blank records in any of the rows (except for 6th,8th and 9th... (10 Replies)
Discussion started by: chatwithsaurav
10 Replies
10. Shell Programming and Scripting
I've spent the past hour trying different things and googling for this solution and cannot find the answer. Found variations of this, but not this exact thing.
I have the following text, which is the output from our mainframe. Each field is on a separate line, with a blank line between each... (7 Replies)
Discussion started by: lupin..the..3rd
7 Replies
LEARN ABOUT CENTOS
xgetocvalues
XCreateOC(3) XLIB FUNCTIONS XCreateOC(3)
NAME
XCreateOC, XDestroyOC, XSetOCValues, XGetOCValues, XOMOfOC - create output contexts
SYNTAX
XOC XCreateOC(XOM om);
void XDestroyOC(XOC oc);
char * XSetOCValues(XOC oc, ...);
char * XGetOCValues(XOC oc, ...);
XOM XOMOfOC(XOC oc);
ARGUMENTS
oc Specifies the output context.
om Specifies the output method.
... Specifies the variable length argument list to set or get XOC values.
DESCRIPTION
The XCreateOC function creates an output context within the specified output method.
The base font names argument is mandatory at creation time, and the output context will not be created unless it is provided. All other
output context values can be set later.
XCreateOC returns NULL if no output context could be created. NULL can be returned for any of the following reasons:
o A required argument was not set.
o A read-only argument was set.
o An argument name is not recognized.
o The output method encountered an output method implementation-dependent error.
The XDestroyOC function destroys the specified output context.
The XSetOCValues function returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be set.
An argument might not be set for any of the following reasons:
o The argument is read-only.
o The argument name is not recognized.
o An implementation-dependent error occurs.
Each value to be set must be an appropriate datum, matching the data type imposed by the semantics of the argument.
The XGetOCValues function returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be
obtained. An argument might not be obtained for any of the following reasons:
o The argument name is not recognized.
o An implementation-dependent error occurs.
Each argument value following a name must point to a location where the value is to be stored.
The XOMOfOC function returns the output method associated with the specified output context.
SEE ALSO
XCreateOM(3), XCreateFontSet(3)
Xlib - C Language X Interface
X Version 11 libX11 1.6.0 XCreateOC(3)