I want to sort alphabetically on the first field and sort in descending numerical order on the 2nd field. With a normal "sort -r -n" it does this:
abc ||| 5e-05 ||| bla
abc ||| 3 ||| ble
def ||| 1 ||| abc
def ||| 0.2 ||| def
As you can see it ignores the fact that 5e-05 is actually 0.00005... (1 Reply)
Hi, all
I need to get fields in a line that are separated by commas, some of the fields are enclosed with double quotes, and they are supposed to be treated as a single field even if there are commas inside the quotes.
sample input:
for this line, 5 fields are supposed to be extracted, they... (8 Replies)
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Hi Friends,
Need Help. I have file1.txt as
File1.txt
|123|A|7267|Hyder|Cross|Sell|7801
|995|A|7051|2008|Lunar|New|Year|Promotion|7801
|996|A|7022|Q108|Targ|Prospect|&|SSCC|Savings|Promo|7801
|997|A|7182|Q1|Feb-Apr|08|Credit|ITA|PA|SBA|Campaign|7801
File2.txt... (7 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Table
ACN|NAME|CITY|CTY|NO1|NO2
115|AKKK|ASH|IND|10|15
115|AKKK|ASH|IND|20|20
115|AKKK|ASH|IND|30|35
115|AKKK|ASH|IND|30|35
112|ABC|FL|USA|15|15
112|ABC|FL|USA|25|20
112|ABC|FL|USA|25|45
i have written shell script using cut command
and awk programming getting error correct it and add... (5 Replies)
I am trying to output a tab-delimited result that uses the data from a tab-delimited file to combine and subtract specific lines.
If $4 matches in each line then the first matching sequential $6 value is added to $2, unless the value is 1, then the original $2 is used (like in the case of line... (3 Replies)
In the awk below I am trying to set/update the value of $14 in file2 in
bold, using the matching NM_ in $12 or $9 in file2
with the NM_ in $2 of file1.
The lengths of $9 and $12 can be variable but what is consistent is the start pattern
will always be NM_ and the end pattern is always ;... (2 Replies)
Hi,
So awk is driving me crazy on this one. I have searched everywhere and read man, docs and every related post Google can find and still no luck. The actual files I need to run this on are sensitive in nature, but it is the same thing as if I needed to calculate weighted grades for multiple... (15 Replies)
Discussion started by: cotilloe
15 Replies
LEARN ABOUT DEBIAN
rtf_create_fir_lowpass
RTF_CREATE_FIR_LOWPASS(3) rtfilter library RTF_CREATE_FIR_LOWPASS(3)NAME
rtf_create_fir_lowpass, rtf_create_fir_highpass, rtf_create_fir_bandpass - Creates FIR lowpass, highpass and bandpass windowed sinc filters
SYNOPSIS
#include <rtf_common.h>
hfilter rtf_create_fir_lowpass(unsigned int nch, int proctype,
double fc, unsigned int hlen,
KernelWindow wndtype);
hfilter rtf_create_fir_highpass(unsigned int nch, int proctype,
double fc, unsigned int hlen,
KernelWindow wndtype);
hfilter rtf_create_fir_bandpass(unsigned int nchann, int proctype,
double fc_low, double fc_high,
unsigned int hlen,
KernelWindow wndtype);
DESCRIPTION
rtf_create_fir_lowpass() creates a lowpass windowed sinc filter processing nchann channels of data type specified by proctype with fc as
normalized cutoff frequency and hlen as the half length of the window.
rtf_create_fir_highpass() is the same as rtf_create_fir_lowpass() but creates a highpass filter.
rtf_create_fir_bandpass() is the same but creates a bandpass filter with fc_low and fc_high as respectively the lowpass and highpass nor-
malized cutoff frequencies.
A normalized frequency is the ratio between the absolute frequency and the sampling frequency (i.e. a value of 1.0 refers to the sampling
frequency).
The parameter proctype has the same meaning as in rtf_create_filter(3). Refers to its manpage for more details.
The parameter wndtype specifies the type of window applied to the impulse response and can take the following values: BLACKMAN_WINDOW, HAM-
MING_WINDOW or RECT_WINDOW (see a book on signal processing for details about their meaning).
RETURN VALUE
Returns the handle to the created filter in case of success, NULL otherwise.
SEE ALSO rtf_create_filter(3), rtf_destroy_filter(3)EPFL 2010 RTF_CREATE_FIR_LOWPASS(3)