I have 2 files called stuff-egress-filter and stuff-ingress filter. There are also files called something like stuff-egress-F/0
I want to match the first two... I tried (i realize there is no filename... I'm piping this from the ls command)
grep stuff-*-filter
Finds nothing. If I... (18 Replies)
Hello Experts,
Can someone help me here:
I have a variable which contains a string with "".
set var1 {a}
set str1 {a is the element i want to match}
Now "regexp $var1 $str1" does not work?
("regexp {a\} $str1" works, but var1 gets it's value automatically from another script)
Is... (6 Replies)
I use SAS (a statistical software) and have to remove last character or the last 1/2 numbers that appear after characters from the string using Perl Regular Expression (which is recognized by SAS).
Input: f183ii10 f183ii2 f182ii1 f182ii2 f183iim f22ii f22ii11 f22ii12 pmh4 pmhm
Desired... (2 Replies)
Hi,
I wonder if its possible to do the following task using rename (perl v5.8.8).
I want to find filenames matching the specific pattern and then change chosen character of this pattern to a given character, e.g. do the following renaming:
regexp: 'ab' -----> 'a0b'
What's the simplest... (0 Replies)
Hi,
I am learning reg exp a bit :)
Meta char info:
{n,m} Matches the preceding character at least n times but not more than m times, for example, 'ba{2,3}b' will find 'baab' and 'baaab' but NOT 'bab' or 'baaaab'. Values are enclosed in braces (curly brackets).
Input file:
112
11112... (2 Replies)
My input file looks like this:
13154|X,the deer hunter
13154|Y,the good life
1316|,american idol
1316|,bowling
1316|,chuck
etc...
The X, Y, or any other character (besides a comma) after the pipe is a "Device Type". I want to strip out lines that do not have a device type.
I have... (2 Replies)
I have test string value , something like the one below
str='KUAMRJIT|GHOSH'
If I type
echo $str | grep -o -e '\|+'
it doesnt give me anything .
But on the contrary
echo $str | grep -o -e '|'
display the only one pipe character(|) thats there in the string above .
The way I understood Unix... (8 Replies)
I'm probably just not thinking of the correct term to search for :-) But I want to match a pattern that might be 'ABC' or '1ABC' there might be three characters, or there might be four, but if there are four, the first has to be 1 (1 Reply)
Hi All
It's me again with another huge txt files. :confused:
What I have:
- I have 33 huge txt files in a folder.
- I have thousands of line in this txt file which contain many the letter "x" in them.
- Some of them have more than one "x" character in the line.
What I want to achieve:... (8 Replies)
Hi All,
I need to print the characters in the previous line just before the regular expression match
Please have a look at the input file as attached
I need to match the regular expression ^ with the character of the previous like and also the pin numbers
and the output file should be like... (6 Replies)
Discussion started by: kshitij
6 Replies
LEARN ABOUT SUNOS
mlib_signalemphasizeinit_f32_f32
mlib_SignalEmphasizeInit_S16_S16(3MLIB) mediaLib Library Functions mlib_SignalEmphasizeInit_S16_S16(3MLIB)NAME
mlib_SignalEmphasizeInit_S16_S16, mlib_SignalEmphasizeInit_S16S_S16S, mlib_SignalEmphasizeInit_F32_F32, mlib_SignalEmphasizeInit_F32S_F32S
- initialization for signal pre-emphasizing
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_SignalEmphasizeInit_S16_S16(void **filter, mlib_f32 alpha);
mlib_status mlib_SignalEmphasizeInit_S16S_S16S(void **filter, mlib_f32 alpha);
mlib_status mlib_SignalEmphasizeInit_F32_F32(void **filter, mlib_f32 alpha);
mlib_status mlib_SignalEmphasizeInit_F32S_F32S(void **filter, mlib_f32 alpha);
DESCRIPTION
Each of these functions allocates memory for an internal filter structure and converts the filter coefficients into the internal represen-
tation.
PARAMETERS
Each of the functions takes the following arguments:
filter Internal filter structure.
alpha Emphasizing coefficient. 0 < alpha < 1.0
RETURN VALUES
Each of the functions 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_SignalEmphasize_S16_S16_Sat(3MLIB), mlib_SignalEmphasizeFree_S16_S16(3MLIB), attributes(5)SunOS 5.10 9 Nov 2004 mlib_SignalEmphasizeInit_S16_S16(3MLIB)