I have to send a file to mainframe and before sending it, I have to execute the quote command to set the record length.
Since the file is dynamic, I do not know what the maximum size of a line could be.
Currently, I use the following function to get the Max Column Count. Since I use "sed" it... (2 Replies)
Hi all,
Ive searched the forum but with no luck...
I have a file:
ID Name Val
1 bob 45
2 joe 89
3 sue 11
4 steve 89
...
etc
I want to find a way to print... (6 Replies)
In C that was easy with a for and if. Iam trying to learn a litle more in bash.
Example
Ronaldo:5800
Figo:4000
Rafael:2321
Kaka:1230
I want the max of the $2 and the output will be:
The max value is 5800 from Ronaldo.
How can i do this in shell?
Thanks for all, folks. (11 Replies)
Hello all,
this should really be easy for you... I need AWK to print column maxima for each column of such input:
Input:
1 2 3 1
2 1 1 3
2 1 1 2
Output should be:
2 2 3 3
This does the sum, but i need max instead:
{ for(i=1; i<=NF; i++)
sum +=$i }
END {for(i=1; i in sum;... (3 Replies)
Hi Friends,
I have a file1 with 3400 records that are tab separated and I have a file2 with 6220 records. I want to merge both these files. I tried using join file1 and file2 after sorting. But, the records should be (3400*6220 = 21148000). Instead, I get only around 11133567. Is there anything... (13 Replies)
Hello Experts,
I have got a txt files which has multiple columns, I want to get the max, min and diff (max-min) for each column in the same txt file. Example:
cat file.txt
a 1 4
b 2 5
c 3 6
I want ouput like:
cat file.txt
a 1 4
b 2 5
c 3 6
Max 3 6
Min 1 4
Diff 2 2
awk 'min=="" ||... (4 Replies)
Hi,
I need an awk script (or whatever shell-construct) that would take data like below and get the max value of 3 column, when grouping by the 1st column.
clientname,day-of-month,max-users
-----------------------------------
client1,20120610,5
client2,20120610,2
client3,20120610,7... (3 Replies)
Hi all
I have a file that has two columns and I need the maximum value in column 2 of 4 positions o rows. for example at position {1..3} there are 4 characters (A, C, G and T) each of these characters with a value with a value in column 2. I need the maximum value in column 2 and the corresponding... (2 Replies)
Gents,
I have a big file file like this.
5100010002
5100010004
5100010006
5100010008
5100010010
5100010012
5102010002
5102010004
5102010006
5102010008
5102010010
5102010012
The file is sorted and I would like to find the min and max value, taking in the consideration key1... (3 Replies)
Discussion started by: jiam912
3 Replies
LEARN ABOUT DEBIAN
yagi
YAGI(5) File Formats Manual YAGI(5)NAME
yagi - yagi binary output format
DESCRIPTION
This manual page describes the output format of the file created by the Yagi-Uda project's yagi program. The file is a binary file with a
header of 100 bytes. The header consists of:
offset(bytes) information data-type
0 elements int
4 driven int
8 parasitic int
12 min_frequency double
20 max_frequency double
28 design frequency double
36 step_frequency double
44 angular_step double
52 0 double
92 0 double
Following the header, there starts the coordinates(x,y,l) of each
element and the voltage applied to each element. Then we write
the element currents one after the other, at each frequency.
Hence the element currents will be written 12,000 times with a
3 element yagi analysed at 4,000 different frequencies. All complex
data is stored in a structure of type fcomplex, defined as:
struct fcomplex {double real, double imaginary};
offset(bytes) information data-type
100 x1 double /* coordinates */
108 y1 double
116 l1 double
100+(n-1)*24 x_n double
100+(n-1)*24+8 y_n double
100+(n-1)*24+16 l_n double
-------------- Repeated for each element.
100+24*elements Voltage1 fcomplex /* voltage */
100+24*elements+(n-1)*16 Voltage_n fcomplex
-------------- Repeated for each element n at each frequency step f.
100+40*elements Current1@f1 fcomplex /* current */
100+40*elements+(n-1)*16 Current_n@f1 fcomplex
100+56*elements Current@f2 fcomplex
100+40*elements+(n-1)*16 Current_n@f2 fcomplex
FILES
filename.out binary file
SEE ALSO yagi(1), output(1), input(1), optimise(1), first(1) and input(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).
Yagi version 1.16 24th October 2000 YAGI(5)