hi friends,
im new to scripting and am tiring out to valid an ip address if user inputs
,i need to suppress all leading zeros and single zero
ie out put for the same should be
can any help using awk ,regular expression to split the string
and validate...
Moderator's Comments:
Please use a descriptive subject for threads, not just "Help"
Last edited by pludi; 05-24-2011 at 08:42 AM..
Reason: Title, formatting
Hi,
I'm trying to write a script, which will perform the following actions.
Pick up the IP address of the PC I have used to telnet into the SUN server.
Export this.
Run the rest of my script.
I am struggling with the first part, I know the IP address can be displayed by the command... (2 Replies)
Hi,
Apologies if this is the wrong forum or this question has been answered already.
I'm using the ISC dhcpd server on Centos 6.0, and can happily assign a single IPV6 address to a client with entries like this:
subnet6 fd01:0:0:5::/64
{
option dhcp6.name-servers fd01:0:0:5::226;... (0 Replies)
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
i have a script which takes input from user, if user gives either Y/y then it should continue, else it should quit by displaying user cancelled.
#!/bin/sh
echo " Enter your choice to continue y/Y OR n/N to quit "
read A
if
then
echo " user requested to continue "
##some commands... (7 Replies)
Hi,
I am working on a project where i can commit the project filles using UNIX commands. Without my awareness some body has changed and commited the project files with my login credentials. Now I want to know the UNIX command to find out the last 10(or) more IP addresses that uses my project... (4 Replies)
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Hi,
I have created a bonding bond1 interface with 6 Eth , mode=4. Recently i have changed my old ipv6 to new one and tried to restart as well as reload network service. Post which i can see old as well as changed ipv6 in ifconfig command output. Below are few files and command output for your... (1 Reply)
Hello dears
how to assign IPv4 and IPv6 addresses with same interface on solaris 10 (1 Reply)
Discussion started by: ttashman
1 Replies
LEARN ABOUT SUNOS
mlib_imagecolorycc2rgb_fp
mlib_ImageColorYCC2RGB_Fp(3MLIB) mediaLib Library Functions mlib_ImageColorYCC2RGB_Fp(3MLIB)NAME
mlib_ImageColorYCC2RGB_Fp - YCC to RGB color conversion
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageColorYCC2RGB_Fp(mlib_image *dst, const mlib_image *src);
DESCRIPTION
The mlib_ImageColorYCC2RGB_Fp() function performs a color space conversion from ITU-R Rec.601 Y'CbCr to computer R'G'B'.
The source and destination images must be three-channel images.
It uses the following equation:
|R'| |cmat[0] cmat[1] cmat[2]| |Y'| |offset[0]|
|G'| = |cmat[3] cmat[4] cmat[5]| * |Cb| + |offset[1]|
|B'| |cmat[6] cmat[7] cmat[8]| |Cr| |offset[2]|
where
cmat[] = { 298.082/256, 0.000/256, 408.583/256,
298.082/256, -100.291/256, -208.120/256,
298.082/256, 516.411/256, 0.000/256 };
offset[] = { -222.922, 135.575, -276.836 };
src[x][y] = { Y', Cb, Cr };
dst[x][y] = { R', G', B' };
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image.
src Pointer to source image.
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_ImageColorConvert2(3MLIB), mlib_ImageColorConvert2_Fp(3MLIB), mlib_ImageColorRGB2XYZ(3MLIB), mlib_ImageColorRGB2XYZ_Fp(3MLIB),
mlib_ImageColorRGB2YCC(3MLIB), mlib_ImageColorRGB2YCC_Fp(3MLIB), mlib_ImageColorYCC2RGB(3MLIB), attributes(5)SunOS 5.10 10 Nov 2004 mlib_ImageColorYCC2RGB_Fp(3MLIB)