Hi how do i grep only a part of the line from a file from all the lines.
file:
asdfgh 543212376 nag
lkjh abhilash 543757858
How do i grep and print only 543212376 and 543757858
Can i grep something like 543* and print only that. (3 Replies)
Hi,
In a file FILE, there is a line like this one
MOLECULE C2 H2
I want to extract "C2 H2". I can do it in two step in a script :
VARIABLE="`grep MOLECULE FILE`" # Assign "MOLECULE C2 H2"
VARIABLE=`echo ${VARIABLE/"MOLECULE "}` # Remove "MOLECULE ".
Then,
$echo $VARIABLE
gives
C2... (6 Replies)
How do I print only the values of the variables from set or env.
For example I have the lines
USER=USER
XYZ='text'
SHELL=/bin/bash
How do I print only the part after or starting from =
Let's say I have those lines in a list X
If I run
Y = echo $X | grep -o "=*$"
Y won't contain... (3 Replies)
Hi,
Suppose,
DBconnection=jdbc: oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=YYYY))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=project_db1)))
This is a part of a file <filename> . I Need to get the value of SERVICE_NAME from this line…
The... (4 Replies)
Hi I just started on GNU Grep with regex and am finding it very challenging and need to ask for help already...
here is the problem, I have a page (MYFILE) which consists of the following....
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden"... (2 Replies)
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
I need some help. I would like to read in a text file.
Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01.
Is this possible? any help is appreciated. (2 Replies)
Hi,
I have a file with thousands of lines as below
INSERT INTO T_DIM_CLNT(CLNT_KY,CLNT_OBJ_ID,ISI_CLNT_ID,OPERN_ID,CLNT_NM,PRMRY_SIC_CD,PRMRY_SIC_DSC,RET_AGE_NBR,REC_CRT_TS,REC_DATA_EXTRC_TS,ETL_LOG_KY)
VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)... (5 Replies)
Hello,
I am java command from a shell script which will generate the below output on the command prompt
signature Base64 :... (10 Replies)
Discussion started by: chetanojha
10 Replies
LEARN ABOUT OPENSOLARIS
mlib_imagefouriertransform
mlib_ImageFourierTransform(3MLIB) mediaLib Library Functions mlib_ImageFourierTransform(3MLIB)NAME
mlib_ImageFourierTransform - Fourier transform
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageFourierTransform(mlib_image *dst,
const mlib_image *src, mlib_fourier_mode mode);
DESCRIPTION
The mlib_ImageFourierTransform() function performs a two-dimensional Fourier transformation. The source and destination images must be the
same type and the same size. The data type of the images can be MLIB_BYTE, MLIB_SHORT, MLIB_USHORT, MLIB_INT, MLIB_FLOAT, or MLIB_DOUBLE.
The height and width of the images must be some positive power of 2 (but they do not have to be equal).
They can have 1 or 2 channels. If the source image has just one channel the imaginary parts are assumed to be zero. If the destination
image has just one channel, then it is assumed that the imaginary parts of the output can be discarded. But in case both source and desti-
nation images are one-channel images, then MLIB_FAILURE is returned.
The predefined modes used in the image Fourier transform function are as follows:
Mode Description
----------------------------------------------------------------------
MLIB_DFT_SCALE_NONE Forward DFT without scaling
MLIB_DFT_SCALE_MXN Forward DFT with scaling of 1/(M*N)
MLIB_DFT_SCALE_SQRT Forward DFT with scaling of 1/sqrt(M*N)
MLIB_IDFT_SCALE_NONE Inverse DFT without scaling
MLIB_IDFT_SCALE_MXN Inverse DFT with scaling of 1/(M*N)
MLIB_IDFT_SCALE_SQRT Inverse DFT with scaling of 1/sqrt(M*N)
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image.
src Pointer to source image.
mode Mode of the transform.
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 |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)SunOS 5.11 2 Mar 2007 mlib_ImageFourierTransform(3MLIB)