06-01-2010
It works only if the line starts from PDE..But there are few lines which start from differetn charcters
for example:
a.dat:
HTML Code:
PDE 2010 5 9 5 59 42.00 3.7800 96.0500 45.0 7.2 7.2 NORTHERN SUMATRA, INDONE
event name: 201005090559A
time shift: 9.6600
half duration: 10.0000
latitude: 3.3800
longitude: 95.7900
depth: 37.6200
Mrr: 4.410000e+26
Mtt: -2.590000e+26
Mpp: -1.810000e+26
Mrt: 5.750000e+26
Mrp: -5.280000e+26
Mtp: 2.250000e+26
Previous search examined first 31195 events in catalog
Results
Output in CMTSOLUTION format
PDEW2009 7 24 3 11 56.80 31.1600 85.9000 13.4 5.7 5.8 XIZANG
event name: 200907240311A
time shift: 5.9100
half duration: 1.9000
latitude: 31.0500
longitude: 86.1000
depth: 28.0700
Mrr: -6.450000e+23
Mtt: -5.720000e+24
Mpp: 6.370000e+24
Mrt: 1.710000e+24
Mrp: 6.700000e+23
Mtp: 4.520000e+23
HSW 2010 5 29 2 30 0.00 33.2500 96.2500 33.0 0.0 5.9 QINGHAI, CHINA
event name: 201005290230A
time shift: -5.0000
half duration: 1.9000
latitude: 33.2500
longitude: 96.3000
depth: 20.8300
Mrr: -5.500000e+23
Mtt: -3.130000e+24
Mpp: 3.680000e+24
Mrt: -1.500000e+23
Mrp: 2.860000e+23
Mtp: 4.750000e+24
PDEW2009 12 13 14 41 55.80 22.0000 91.8200 10.0 5.4 0.0 BAY OF BENGAL
event name: 200912131441A
time shift: 0.7500
half duration: 0.7000
latitude: 21.8700
longitude: 91.7400
depth: 12.0000
Mrr: 2.660000e+23
Mtt: -9.730000e+21
Mpp: -2.570000e+23
Mrt: 2.720000e+22
Mrp: -4.690000e+22
Mtp: 8.550000e+22
The output file should be
b.dat:
HTML Code:
PDE 2010 5 9 5 59 42.00 3.7800 96.0500 45.0 7.2 7.2 NORTHERN SUMATRA, INDONE
PDEW2009 7 24 3 11 56.80 31.1600 85.9000 13.4 5.7 5.8 XIZANG
HSW 2010 5 29 2 30 0.00 33.2500 96.2500 33.0 0.0 5.9 QINGHAI, CHINA
PDEW2009 12 13 14 41 55.80 22.0000 91.8200 10.0 5.4 0.0 BAY OF BENGAL
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file containing the following contents
All of us, including Zippy, our dog
All of us, including Zippy and Zippy
All of us, including Zippy and Zippy and Zelda
Testing All of us Zippy
Now, i wanna grep and get the lines which has only one occurance of word Zippy and starting with... (1 Reply)
Discussion started by: google_ever
1 Replies
2. Shell Programming and Scripting
Hi all,
I have the following data in a file x.csv:
> ,this is some text here
> ,,,,,,,,,,,,,,,,2006/11/16,0.23
> ,,,,,,,,,,,,,,,,2006/12/16,0.88
< ,,,,,,,,,,,,,,,,this shouldnt be deleted
I need to use SED to match anything with a > in the line and delete that line, can someone help... (7 Replies)
Discussion started by: not4google
7 Replies
3. Shell Programming and Scripting
I have a files in a directory in this format
data
data
data
---BEGIN CERT-----
data
data
data
---END CERT -----
Now, I want to extract the lines starting from --BEGIN CERT-- and write the contents till the end of file into a new file.How can I do this for all the files in the... (1 Reply)
Discussion started by: sureshg
1 Replies
4. Shell Programming and Scripting
Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq -d
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem. (3 Replies)
Discussion started by: necroman08
3 Replies
5. UNIX for Advanced & Expert Users
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Discussion started by: krishnix
16 Replies
6. Shell Programming and Scripting
hey guys,
I tried searching but most 'search and replace' questions are related to one liners.
Say I have a file to be replaced that has the following:
$ cat testing.txt
TESTING
AAA
BBB
CCC
DDD
EEE
FFF
GGG
HHH
ENDTESTING
This is the input file: (3 Replies)
Discussion started by: DeuceLee
3 Replies
7. Shell Programming and Scripting
Hello,
I'm trying to figure out how to use sed or awk to delete single lines in a file. By single, I mean lines that are not touching any other lines (just one line with white space above and below).
Example:
one
two
three
four
five
six
seven
eight
I want it to look like: (6 Replies)
Discussion started by: slimjbe
6 Replies
8. Shell Programming and Scripting
Hello,
I have file of more than 10000 lines.
I want to delete 40 lines after every 20 lines.
e.g from a huge file, i want to delete line no from 34 - 74, then 94 - 134 etc and so on.
Please let me know how i can do it.
Best regards, (11 Replies)
Discussion started by: nehashine
11 Replies
9. Shell Programming and Scripting
Hi,
cat test.txt
BlankLine
BlankLine
BlankLine
BlankLine
ello
hi
helo
BlankLine
BlankLine
heylo
BlankLine
BlankLine
BlankLine
done
BlankLine
BlankLine
BlankLine (1 Reply)
Discussion started by: TomG
1 Replies
10. UNIX for Beginners Questions & Answers
Hi all, I was wondering if anyone would know how to search & delete inclusively between two lines, please:
Important:
There are multiple }; lines. I'm curious how to delete the correct one only.
Line numbers may vary each time this script is run.
For example, I'd like to delete only the... (6 Replies)
Discussion started by: chatguy
6 Replies
LEARN ABOUT DEBIAN
output
OUTPUT(5) File Formats Manual OUTPUT(5)
NAME
output - output data file formats
DESCRIPTION
This manual page describes the output formats of the files created by the Yagi-Uda project's output program. The files are ASCII file, so
can be analysed with any graph plotting program.
Example of a .dat File
Below is a typical .dat file, for a 4ele 144-146MHz beam, optimised for a huge (and useless) FB.
# Driven=1 parasitic=3 total-elements=4 design=145.000MHz
# Checked from 144.000MHz to 146.000MHz.
f(MHz) E(deg) H(deg) R jX VSWR Gain(dBi) FB(dB) SideLobes(dB)
144.000 54.7 71.5 44.47 -2.35 1.136 9.386 21.944 16.650
144.500 54.0 70.1 41.34 -0.75 1.210 9.553 27.244 17.153
145.000 53.2 68.4 37.55 1.61 1.335 9.742 103.055 17.777
145.500 52.3 66.6 33.26 5.00 1.530 9.947 25.734 18.547
146.000 51.3 64.6 28.77 9.63 1.832 10.149 18.919 18.919
What is what in the .dat file
The f(MHz) column is the frequency (MHz) at which the data is evaluated at.
The E(deg) column is the approximate 3dB E-plane bandwidth calculated to the nearest 0.1 degree.
The H(deg) column is the approximate 3dB H-plane bandwidth calculated to the nearest 0.1 degree.
The (R) column is the input resistance in Ohms.
The (jX) column is the input reactance in Ohms.
The (VSWR) column is the input VSWR, usually refered to a 50 Ohm input, but this may be changed.
The Gain (dBi) column is the gain at theta=90 degrees, which is the forward direction of the beam. It is possible that a higher gain occurs
at other than 90 degrees, but this is not taken into account. The antenna is seriously at fault if this occurs.
The FB(dB) column is the front to back ratio in dB.
The Sidelobes(dB) column is the minimum level in dB down from the peak gain of any sidelobe. This is not calculated unless the '-c' option
is used, and then only on some optimisation techniques.
Example of a .gai File
The following is a small section of the .gai file.
f(MHz) theta gain-E(dBi) G(E)-peak phi gain-H(dBi) G(H)-peak
144.0000 -90.0000 -12.5584 -21.9444 -180.0000 -12.5584 -21.9444
144.0000 -45.0000 -7.3507 -16.7367 -135.0000 -3.5971 -12.9830
144.0000 0.0000 -999.0000 -1008.3860 -90.0000 -0.9010 -10.2870
144.0000 45.0000 0.1848 -9.2012 -45.0000 4.0261 -5.3599
144.0000 90.0000 9.3860 0.0000 0.0000 9.3860 0.0000
144.0000 135.0000 0.1848 -9.2012 45.0000 4.0261 -5.3599
144.0000 180.0000 -999.0000 -1008.3860 90.0000 -0.9010 -10.2870
144.0000 225.0000 -7.3507 -16.7367 135.0000 -3.5971 -12.9830
144.0000 270.0000 -12.5584 -21.9444 180.0000 -12.5584 -21.9444
What is what in the .gai file
The f(MHz) column is the frequency in MHz.
The theta column is the angle theta, for which the next two columns refer.
The gain-E(dBi) is the gain at theta, relative to an isotropic radiator. This is the E-plane gain. Hence at the peak (theta), this gives
the peak forward gain.
The G(E)-peak is the gain at theta, relative to the peak gain. Hence at the peak (theta=90 degrees), this is zero.
The phi column has nothing to do with the previous 3 columns. It is the angle for which the next two columns refer.
The gain-H(dBi) is the gain at phi, relative to an isotropic radiator. This is the H-plane gain. Hence at the peak (phi=0), this gives the
peak forward gain.
The G(H)-peak is the gain at phi, relative to the peak gain. Hence at the peak (phi=0 degrees), this is zero.
Example of a .up File
The .up file list the improvements made by optimise to an antenna design. Starting from the original design, the file is appended each time
a new better design is found. Here is an example, where the final line is the performance of the 4ele beam with the .dat file shown ear-
lier.
1 7.57dBi, 16.93dB F/B, Z=(31.77-56.34j) Ohms, VSWR=3.95, SL=16.95 dB
84 7.58dBi, 16.93dB F/B, Z=(31.78-56.32j) Ohms, VSWR=3.95, SL=16.95 dB
623 7.58dBi, 16.93dB F/B, Z=(31.78-56.28j) Ohms, VSWR=3.95, SL=16.95 dB
89345 9.74dBi, 103.06dB F/B, Z=(37.55 +1.61j) Ohms, VSWR=1.33, SL=17.78 dB
What is what in the .up file
The first column is an integer specifying the iteration. The other columns, going from left to right are gain(dBi), FB, input impedance,
VSWR and level of the most significant sidelobe, in dB down on the peak gain.
SEE ALS0
yagi(1), output(1), input(1), optimise(1), first(1) and yagi(5).
AUTHORS
Dr. David Kirkby G8WRB (david.kirkby@onetel.net), with help with converting to DOS from Dr. Joe Mack NA3T (mack@fcrfv2.ncifcrf.gov).
Version 1.16 24th October 2000 OUTPUT(5)