01-17-2013
Post samples of the input files and the desired output.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear experts,
i want to search pattern tre and copy this line and above two lines
in a seperate file::
Thanks for the help
SEV="MAJOR": RX-TX HW-FAILURE DOMAIN="alcomc2_BSS_20
unit-type % bts nbr % 24
SBL-type % tre nbr % 4 subnb % 255
BR,
Danish (16 Replies)
Discussion started by: Danish Shakil
16 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I would like to know how can I get lines from a text file that match no more than 2 '>'. Example:
Input file:
a >cr1 4 a>b b>c
a >cr2 5 a>b
Output file:
a >cr2 5 a>b
Thanks in advance (2 Replies)
Discussion started by: fadista
2 Replies
3. Shell Programming and Scripting
I am using Solaris, I want to print
3 lines before pattern match
pattern
5 lines after pattern match
Pattern is abcd to be searched in a.txt. Looking for the solution in sed/awk/perl. Thanks ..
Input File a.txt:
=================
1
2
3
abcd
4
5
6
7
8 (7 Replies)
Discussion started by: manuswami
7 Replies
4. Shell Programming and Scripting
i need to search for a pattern from a big file and print everything expect the next 6 lines from where the pattern match was made. (8 Replies)
Discussion started by: chidori
8 Replies
5. Shell Programming and Scripting
I have a file of 1.3 millions lines.
some are with the same word twice on the line, some line have two diffrent words.
each line has two words, one in brackets.
example:
foo (foo)
bar (bar)
thae (awvd)
beladf (vswvw)
I am sure this can be done with one line of... (6 Replies)
Discussion started by: robsonde
6 Replies
6. Shell Programming and Scripting
I need to print the lines that do not match a pattern. I tried using grep -v and sed -n '/pattern/!p', but both of them are not working as I am passing the pattern as variable and it can be null some times.
Example
........ abcd......
.........abcd......
.........abcd......... (4 Replies)
Discussion started by: sunny1234
4 Replies
7. Shell Programming and Scripting
Hi Experts,
I am finding difficulty to get exact match:
file
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME="lan3"
IP_ADDRESS="10.53.52.241"
SUBNET_MASK="255.255.255.192"
BROADCAST_ADDRESS=""
INTERFACE_STATE=""
DHCP_ENABLE=0
INTERFACE_NAME="lan3:1"... (6 Replies)
Discussion started by: rveri
6 Replies
8. Shell Programming and Scripting
Hi all,
I got a file that contains the following content, Actually it is a part of the file content,
Installing XYZ XYZA Image, API 18, revision 2
Unzipping XYZ XYZA Image, API 18, revision 2 (1%)
Unzipping XYZ XYZA Image, API 18, revision 2 (96%)
Unzipping XYZ XYZA Image, API 18,... (7 Replies)
Discussion started by: Kashyap
7 Replies
9. Shell Programming and Scripting
Hi, i have a big file having many opcodes.
if (opcode="01110000000100000000" ) then --fadd
result.opcode := "01110000000100000000";
result.s0 := '1';
result.s1 := '1';
result.s2 := '0';
result.inst := '0';
result.scalar := '1';... (7 Replies)
Discussion started by: twistedpair
7 Replies
10. Shell Programming and Scripting
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
4 Replies
MIXER(1) The Canonical Csound Reference MIXER(1)
NAME
mixer - Mixes together a number of soundfiles. .
DESCRIPTION
Mixes together a number of soundfiles, starting at different times and with individual channel selection from the input files.
SYNTAX
mixer [OPTIONS ... ] infile [[OPTIONS... ] infile] ...
INITIALIZATION
Flags:
o -A = Generate an AIFF output file.
o -W = Generate an WAV output file.
o -h = Generate an output file with no header.
o -c = Generate 8-bit signed_char sound samples.
o -a = Generate alaw sound samples.
o -u = Generate ulaw sound samples.
o -s = Generate short integer sound samples.
o -l = Generate long (32 bit) integer sound samples.
o -f = Generate floating point samples.
o -F arg = Specifies the gain to be applied to the following input file. If arg is a floating point number that gain is applied uniformly
to the input. Alternatively it could be a file name which specifies a breakpoint file for varying the gain for different periods.
o -S integer = Indicate at which sample to start to mix in the next input file.
o -T fpnum = Indicate at which time (in seconds) to start to mix in the next input file.
o -1 = Mix in channel 1 from next sound file.
o -2 = Mix in channel 2 from next sound file.
o -3 = Mix in channel 3 from next sound file.
o -4 = Mix in channel 4 from next sound file.
o -^ intx inty = Mix in channel x from next sound file as channel y in the output.
o -v = Verbose mode.
o -R = Continually rewrite the header while writing soundfile (WAV/AIFF).
o -H integer = Show a "heart-beat" to indicate progress, in style 1, 2 or 3.
o -N = Alert call (usually ringing the bell) when finished.
o -o fname = output file name (default: test.wav)
EXAMPLES
The default values are
mixer -s -otest -F 1.0 -S 0
For example
mixer -F 0.96 in1.wav -S 300 -2 in2.aiff -S 300 -^4 1 in3.wav -o out.wav
This creates a new sound file with a constant gain of 0.96 from in1.wav with the second channel of in2.aiff mixed in after 300 samples and
channel 4 of in3.wav outpout as channel 1 after 300 samples.
CREDITS
Author: John ffitch
1994
AUTHORS
Barry Vercoe
MIT Media Lab
Author.
Dan Ellis
MIT Media Lab,
Cambridge
Massachussetts
Author.
COPYRIGHT
5.10 08/01/2011 MIXER(1)