07-14-2010
If the no. of fields on the input file is 1, then it will print 0.0000%, else it will always print 100.0000%.
Thanks,
Sameer.
9 More Discussions You Might Find Interesting
1. Linux
Hi, I'm new to LINUX Scripting, I would like to know the full explaination of the below scripts.
thank you.
1st script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
`testrecord.scp`
`testEXGU.scp`
2nd Script
#! /bin/sh
. /opt/home/hssadmin/cindy/formatxml.env
cd... (1 Reply)
Discussion started by: AudreyEliza
1 Replies
2. Shell Programming and Scripting
hello,
I would appreciate a little assistance with a process I'm trying to automate. I have several files that are zipped in central location, all follow the same naming conventions i.e (file 1, file 2, etc). what i would like to do is unzip the files and combined them into one file, basically... (2 Replies)
Discussion started by: mrn970
2 Replies
3. Shell Programming and Scripting
Hi
I need some help to clean my code used to get city location.
wget -q -O - http://www.ip2location.com/ | grep chkRegionCity | awk 'END { print }' | awk -F"" '{print $4}'
It gives me the city but have a leading space.
I am sure this could all be done by one single AWK
Also if possible... (8 Replies)
Discussion started by: Jotne
8 Replies
4. Programming
can anybody explain a
long fpathconf(int fildes, int name);
what it do
like
1- lim = fpathconf(STDIN_FILENO, _PC_NAME_MAX);
printf("%s %ld\n", "_PC_NAME_MAX: ", lim);
2- lim = fpathconf(STDIN_FILENO, _PC_PATH_MAX);
printf("%s %ld\n", " _PC_PATH_MAX ", lim);
3- lim =... (1 Reply)
Discussion started by: fwrlfo
1 Replies
5. Shell Programming and Scripting
Hello Admin,
Could you pls explain on the below behavior of the awk command.
$ awk -F">20" "/Cyclomatic complexity/ && /;add;/{print \$1}" inspect_64d_369980 | awk '{print $NF}' | sort | tail -1
65
$var=`awk -F">20" "/Cyclomatic complexity/ && /;add;/{print \$1}" inspect_64d_369980 | awk... (3 Replies)
Discussion started by: chandana hs
3 Replies
6. Shell Programming and Scripting
Hi Team,
I need to know why ppl use If true loop instead of just writing down the sequence of code lines.
1:
echo "Line1"
if true; then
echo "Line2"
fi
echo "Line3"
2:
echo "Line1"
echo "Line2"
echo "Line3"
Could you explain what does the if true loop make difference in 1st compare... (3 Replies)
Discussion started by: chandana hs
3 Replies
7. Shell Programming and Scripting
Hi there, I am trying to select a number of lines based on the lat. lon columns in a file but my awk code gives me empty result.
Here is my file:
20100213 102212 33.1185 39.4078 2.9
20100214 141753 33.1058 39.9068 2.9
20100218 115828 33.1907 39.3575 2.9
20100225 220001 33.1932 39.9448... (10 Replies)
Discussion started by: johankor
10 Replies
8. Shell Programming and Scripting
Hello Team,
Could you pls explain how export command works in below code:
for i in ${!SDV_*}; do
export $i
done
As per my understanding, if
SDV_1=test1;SDV_2=test2;test1=var1;test2=var2then in for loop below export will get executed.
export var1;export var2But, Will this... (3 Replies)
Discussion started by: chandana.hs
3 Replies
9. Shell Programming and Scripting
sample data.file:
0,mfrh_green_screen,1454687485,383934,/PROD/G/cicsmrch/sys/unikixmain.log,37M,mfrh_green_screen,28961345,0,382962--383934
0,mfrh_green_screen,1454687785,386190,/PROD/G/cicsmrch/sys/unikixmain.log,37M,mfrh_green_screen,29139568,0,383934--386190... (7 Replies)
Discussion started by: SkySmart
7 Replies
LEARN ABOUT OPENSOLARIS
mlib_videocoloryuv444seq_to_abgrint
mlib_VideoColorYUV444seq_to_ABGRint(3MLIB) mediaLib Library Functions mlib_VideoColorYUV444seq_to_ABGRint(3MLIB)
NAME
mlib_VideoColorYUV444seq_to_ABGRint - color convert YUV sequential to ABGR interleaved
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
void mlib_VideoColorYUV444seq_to_ABGRint(mlib_u32 *ABGR, const mlib_u8 *Y,
const mlib_u8 *U, const mlib_u8 *V, const mlib_u8 *A_array,
mlib_u8 A_const, mlib_s32 w, mlib_s32 h, mlib_s32 dlb, mlib_s32 slb);
DESCRIPTION
The Y, U, V pixel streams are converted into an ABGR pixel stream. All pixel components are 8-bit unsigned integers. All buffers have
dimensions w and h.
The alpha values for this function work in the following fashion:
o If A_array pointer is not NULL, the values are taken from there. It has to have the same dimensions as the Y buffer.
o If A_array pointer is NULL, the alpha values for every pixel are set to A_const.
The following equation is used:
|R| |1.1644 0.0000 1.5966| [|Y| | 16.0000|]
|G| = |1.1644 -0.3920 -0.8132| * [|U| - |128.0000|]
|B| |1.1644 2.0184 0.0000| [|V| |128.0000|]
PARAMETERS
The function takes the following arguments:
ABGR Pointer to output buffer.
Y Pointer to Y input buffer.
U Pointer to U input buffer.
V Pointer to V input buffer.
A_array Array of alpha values.
A_const Constant alpha value.
w Image width in pixels.
h Image height in lines.
dlb Linebytes for output buffer.
slb Linebytes for input buffers.
RETURN VALUES
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mlib_VideoColorYUV420seq_to_ARGBint(3MLIB), mlib_VideoColorYUV411seq_to_ARGBint(3MLIB), mlib_VideoColorYUV422seq_to_ARGBint(3MLIB),
mlib_VideoColorYUV444seq_to_ARGBint(3MLIB), mlib_VideoColorYUV420seq_to_ABGRint(3MLIB), mlib_VideoColorYUV411seq_to_ABGRint(3MLIB),
mlib_VideoColorYUV422seq_to_ABGRint(3MLIB), mlib_VideoColorYUYV422int_to_ARGBint(3MLIB), mlib_VideoColorYUV444int_to_ARGBint(3MLIB),
mlib_VideoColorYUYV422int_to_ABGRint(3MLIB), mlib_VideoColorYUV444int_to_ABGRint(3MLIB), mlib_VideoColorUYVY422int_to_ARGBint(3MLIB),
mlib_VideoColorUYVY422int_to_ABGRint(3MLIB), mlib_VideoColorUYV444int_to_ARGBint(3MLIB), mlib_VideoColorUYV444int_to_ABGRint(3MLIB),
attributes(5)
SunOS 5.11 2 Mar 2007 mlib_VideoColorYUV444seq_to_ABGRint(3MLIB)