i have a file whose data is like this::
osr_pe_assign|-120|wg000d@att.com|4|
osr_evt|-21|wg000d@att.com|4|
pe_avail|-21|wg000d@att.com|4|
osr_svt|-11|wg000d@att.com|4|
pe_mop|-13|wg000d@att.com|4|
instar_ready|-35|wg000d@att.com|4|
nsdnet_ready|-90|wg000d@att.com|4|... (6 Replies)
#! /bin/csh
set delimiter = |
foreach i (*)
set str_deli="$i$delimiter"
question: how to retain the value of str_deli so i can build a pipe delimited string?
end (1 Reply)
Hi All,
I have space delimited file similar to the one as shown below.. I need to convert it as a pipe delimited, the values inside the pipe delimited file should be as highlighted...
AA ATIU2345098809 009697 005374
BB ATIU2345097809 005445 006518
CC ATIU9685098809 003215 003571
DD... (7 Replies)
I have a file which was pipe delimited, I need to make it tab delimited. I tried with sed but no use
cat file | sed 's/|//t/g'
The above command substituted "/t" not tab in the place of pipe.
Sample file:
abc|123|2012-01-30|2012-04-28|xyz
have to convert to:
abc 123... (6 Replies)
Hi,
I have one requiremnet like this. I need to find some particular string (eg.IncludeDateTime = ) in a file. And wherever it finds the string the unix script has to delete the remaining text coming after the string (ie., 'IncludeDateTime = ' ) in the same line. I tried to write this script in... (5 Replies)
Hi,
I am trying to find the lines in a pipe delimited file where 11th column has not null values. Any help is appreciated. Need help asap please.
thanks in advance. (3 Replies)
Hi guys,
I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file
for eg:
file 1:
xx|yy|"xyz|zzz"|zzz|12...
using below awk command
awk 'BEGIN {FS=OFS="|" } print $3
i would get xyz
But i want as :
xyz|zzz to consider as whole column... (13 Replies)
Hi All,
I have a large dat file where each lines are pipe delimited values. I need to parse the file depending on the request. For example: sometimes I have told to remove all the values in the 7th column (this case remove values '3333' only from the first line and '3543' from the second line)... (4 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
I have a file as below
Emp1|FirstName|MiddleName|LastName|Address|Pincode|PhoneNumber
1234|FirstName1|MiddleName2|LastName3| Add1 || ADD2|123|000000000
2345|FirstName2|MiddleName3|LastName4|
Add1 || ADD2|
234|000000000
OUTPUT :
... (1 Reply)
Discussion started by: styris
1 Replies
LEARN ABOUT HPUX
xcmsconvertcolors
XcmsConvertColors() XcmsConvertColors()
Name
XcmsConvertColors - convert color specifications in XcmsColor structures to another color space specific encoding.
Synopsis
Status XcmsConvertColors(ccc, colors_in_out, ncolors, target_format,
compression_flags_return)
XcmsCCC ccc;
XcmsColor colors_in_out[];
unsigned int ncolors;
XcmsColorFormat target_format;
Bool compression_flags_return[];
Arguments
ccc Specifies the color conversion context. If conversion is between device-independent color spaces only (for example, TekHVC to
CIELuv), the CCC is necessary only to specify the Client White Point.
colors_in_out
Specifies an array of color specifications. Pixel members are ignored and remain unchanged upon return.
ncolors Specifies the number of XcmsColor structures in the color specification array.
target_format
Specifies the target color specification format.
compression_flags_return
Specifies an array of ncolors Boolean values for returning compression status of each color conversion. If a non-NULL pointer
is supplied, each element in the array is set to True if the corresponding color in the color specification array was com-
pressed, and False otherwise. Pass NULL if the compression status is not useful.
Returns
Zero on failure, non-zero on success.
Availability
Release 5 and later.
Description
The XcmsConvertColors() function converts the color specifications in the specified array of XcmsColor structures from their current format
(which may vary from element to element of the array) to a single target format using the specified CCC. If all the conversions succeed
without gamut compression, XcmsConvertColors() returns XcmsSuccess. If one or more of the conversions required gamut compression, the
function returns XcmsSuccessWithCompression, and sets the appropriate flags in compression_flags_return array. If any of the conversions
fail, the function returns XcmsFailure and the contents of the color specification array are left unchanged.
Structures
The XcmsColor and XcmsColorFormat structures are shown on the XcmsColor reference page.
See Also
XcmsCCCOfColormap(), XcmsCreateCCC(), XcmsClientWhitePointOfCCC(), XcmsDefaultCCC(), XcmsScreenWhitePointOfCCC(), XcmsSetCompressionProc(),
XcmsSetWhiteAdjustProc(), XcmsSetWhitePoint().
Xlib - Device-independent Color XcmsConvertColors()