08-12-2010
Please, post a sample of your input file and the required output.
Jean-Pierre.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Sorry if this has been posted before, I searched but not sure what I really want to do.
I have a file with records that show who has logged into my application:
2003-03-14:I:root: Log_mesg: registered servername:userid. (more after this)
I want to pull out the userid, date and time into... (2 Replies)
Discussion started by: MizzGail
2 Replies
2. Shell Programming and Scripting
Hi all,
I have a flatfile
I would like to get ext = 7950 , how do I do that ?
if ($1 == "CTI-ProgramStart") {
ext = substr($9,index($9,"Extension")+11,4);
But why it is not working ???? Please help .
Thanks (1 Reply)
Discussion started by: sabercats
1 Replies
3. UNIX for Dummies Questions & Answers
i have a variable 200612
the last two digits of this variable should be between 1 and 12, it should not be greater than 12 or less than 1 (for ex: 00 or 13,14,15 is not accepted)
how do i check for this conditions in a unix shell script.
thanks
Ram (3 Replies)
Discussion started by: ramky79
3 Replies
4. Shell Programming and Scripting
Hi
I have multiple files that name begins bidb_yyyymm. (yyyymm = current year month of file creation).
What I want to do is look at the files and where yyyymm is older than 1 month I want to remove the file from the server.
I was looking at looping through the files and getting the yyyymm... (2 Replies)
Discussion started by: colesga
2 Replies
5. UNIX for Dummies Questions & Answers
I have a variable '$test' that has the following string value:
$test = 123|456|789|0123
How would I select just the first element ('123') using awk.
Note: '|' is the delimiter, and the length of each field can vary.
Thanks,
- CB (3 Replies)
Discussion started by: ChicagoBlues
3 Replies
6. Shell Programming and Scripting
HI I am using awk and substr function to list out the directory names in the present working directory .
I am using below code
ls -l | awk '{ if ((substr($1,1,1)) -eq d) {print $9 }}'
But the problem is i am getting all the files and directories listed where as the requirement i wrote... (7 Replies)
Discussion started by: prabhu_kumar
7 Replies
7. Shell Programming and Scripting
Hi to all,
I'm here again, cause I need your help to solve another issue for me.
I have some files that have this name format: date_filename.csv
In my shell I must rename each file removing the date so that the file name is filename.csv
To do this I use this command:
fnames=`ls ${fname}|... (2 Replies)
Discussion started by: leobdj
2 Replies
8. Shell Programming and Scripting
Hello life savers!!
Is there any way to use substr in awk command for returning one part of a string from declared start and stop point?
I mean I know we have this:
substr(string, start, length)
Do we have anything like possible to use in awk ? :
substr(string, start, stop)
... (9 Replies)
Discussion started by: @man
9 Replies
9. Shell Programming and Scripting
Hi,
- In a file test.wmi
Col1 | firstName | lastName
4003 | toto_titi_CT- | otot_itit
- I want to have only ( colones $7,$13 and $15) with code 4003 and 4002. for colone $13 I want to have the whole name untill _CT- or _GC-
1- I used the command egrep with awk
#egrep -i... (2 Replies)
Discussion started by: georg2014
2 Replies
10. Shell Programming and Scripting
Hello All;
I have an input file 'abc.txt' with below text:
512345977,213458,100021
512345978,213454,100031
512345979,213452,100051
512345980,213455,100061
512345981,213456,100071
512345982,213456,100091
512345983,213457,100041
512345984,213451,100011
I need to paste the first field... (10 Replies)
Discussion started by: mystition
10 Replies
LEARN ABOUT DEBIAN
srconv
SRCONV(1) The Canonical Csound Reference SRCONV(1)
NAME
srconv - Converts the sample rate of an audio file. .
DESCRIPTION
Converts the sample rate of an audio file at sample rate Rin to a sample rate of Rout. Optionally the ratio (Rin / Rout) may be linearly
time-varying according to a set of (time, ratio) pairs in an auxiliary file.
SYNTAX
srconv [flags] infile
INITIALIZATION
Flags:
o -P num = pitch transposition ratio (srate / r) [don't specify both P and r]
o -P num = pitch transposition ratio (srate / r) [don't specify both P and r]
o -Q num =quality factor (1, 2, 3, or 4: default = 2)
o -i filnam = auxiliary breakpoints file (no breakpoint by default. i.e. No ratio change)
o -r num = output sample rate (must be specified)
o -o fnam = sound output filename
o -A = create an AIFF format output soundfile
o -J = create an IRCAM format output soundfile
o -W = create a WAV format output soundfile
o -h = no header on output soundfile
o -c = 8-bit signed_char sound samples
o -a = alaw sound samples
o -8 = 8-bit unsigned_char sound samples
o -u = ulaw sound samples
o -s = short_int sound samples
o -l = long_int sound samples
o -f = float sound samples
o -r N = orchestra srate override
o -K = Do not generate PEAK chunks
o -R = continually rewrite header while writing soundfile (WAV/AIFF)
o -H# = print a heartbeat style 1, 2 or 3 at each soundfile write
o -N = notify (ring the bell) when score or miditrack is done
o -- fnam = log output to file
This program performs arbitrary sample-rate conversion with high fidelity. The method is to step through the input at the desired sampling
increment, and to compute the output points as appropriately weighted averages of the surrounding input points. There are two cases to
consider:
1. sample rates are in a small-integer ratio - weights are obtained from table.
2. sample rates are in a large-integer ratio - weights are linearly interpolated from table.
Calculate increment: if decimating, then window is impulse response of low-pass filter with cutoff frequency at half of output sample rate;
if interpolating, then window is impulse response of lowpass filter with cutoff frequency at half of input sample rate.
CREDITS
Author: Mark Dolson
August 26, 1989
Author: John ffitch
December 30, 2000
AUTHORS
Barry Vercoe
MIT Media Lab
Author.
Dan Ellis
MIT Media Lab,
Cambridge
Massachussetts
Author.
COPYRIGHT
5.10 08/01/2011 SRCONV(1)