Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
Hi, all.
I need to convert a file tab delimited/variable length file in AIX to a fixed lenght file delimited by spaces. This is the input file:
10200002<tab>US$ COM<tab>16/12/2008<tab>2,3775<tab>2,3783
19300978<tab>EURO<tab>16/12/2008<tab>3,28523<tab>3,28657
And this is the expected... (2 Replies)
Hi,
I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is.
I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Hello Everyone,
I am stuck with one issue while working on abstract flat file which i have to use as input and load data to table.
Input Data-
------ ------------------------ ---- -----------------
WFI001 Xxxxxx Control Work Item A Number of Records
------ ------------------------... (5 Replies)
Hello
I've question on the requirement I am working on.
We are getting a fixed length file with "33" characters long. We are processing that file loading into DB.
Now some times we are getting a file with "35" characters long. In this case I have to remove two characters (in 22,23... (14 Replies)
I have a fixed width file of length 53. when is try to get the lengh of the record of that file i get 2 different answers.
awk '{print length;exit}' <File_name>
The above code gives me length 50.
wc -L <File_name>
The above code gives me length 53.
Please clarify on... (2 Replies)
Hello to all,
I'm trying to format a file to have all lines with the same length (the length of the longest line) adding needed extra spaces at the end.
Currently I have the awk script below that adds one space the end of each that have a lenght lower than 35, but I don't know
how to add... (3 Replies)
Hi Team,
I have a different length records in my text file.I would like to make all the records with same length. I want to check the maximum lenth and all other records make the same length
It's urgent request.
Thanks in Advance (2 Replies)
Discussion started by: Anthuvan
2 Replies
LEARN ABOUT SUNOS
mlib_videocolorrgb2jfifycc444
mlib_VideoColorRGB2JFIFYCC444(3MLIB) mediaLib Library Functions mlib_VideoColorRGB2JFIFYCC444(3MLIB)NAME
mlib_VideoColorRGB2JFIFYCC444 - RGB to JFIF YCbCr color conversion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_VideoColorRGB2JFIFYCC444(mlib_u8 *y, mlib_u8 *cb, mlib_u8 *cr, const mlib_u8 *rgb, mlib_s32 n);
DESCRIPTION
The mlib_VideoColorRGB2JFIFYCC444() function performs color space conversion from RGB to YCbCr when used in the JPEG File Interchange For-
mat (JFIF).
PARAMETERS
The function takes the following arguments:
y Pointer to destination Y component row. y must be 8-byte aligned.
cb Pointer to destination Cb component row. cb must be 8-byte aligned.
cr Pointer to destination Cr component row. cr must be 8-byte aligned.
rgb Pointer to source RGB multi-component row. argb must be 8-byte aligned.
n Length of Y component row. The length of Cb and Cr component rows must be n. The length of the RGB multi-component row must
be 3*n.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_VideoColorABGR2JFIFYCC444(3MLIB), mlib_VideoColorARGB2JFIFYCC444(3MLIB), mlib_VideoColorRGB2JFIFYCC444_S16(3MLIB), attributes(5)SunOS 5.10 9 Nov 2004 mlib_VideoColorRGB2JFIFYCC444(3MLIB)