I have a list of files, 4 files for example
Then I have two buffers ifa and ifb giving me the file numbers
from which I need to get a group of data. For example, the first
four groups use file 1. The fifth group uses data from file 1 and
file 2.
I am thinking of storing all the data in the file to a buffer called
blk. So I just open the file, read each record and put it in blk.
So for groups 1 to 5, I get the group data from blk. For the fifth group
I also need to get the data from file 2. Thus I am thinking of having
two blocks, blka and blkb that store two files.
I have put something in fortran, however c will do. I would be grateful to get some help constructing the code to do this.
1) It can be hard to work from theoretical (your description). Perhaps paste into a message a small section of each of the files and what you are desiring for output.
2) What have you tired to accomplish your request? The Forum is here to assist, but not necessarily write complete code.
I have a process that requires me to read data from huge log files and find the most recent entry on a per-user basis. The number of users may fluctuate wildly month to month, so I can't code for it with names or a set number of variables to capture the data, and the files are large so I don't... (7 Replies)
I have a csv file called template.csv which has the following data
Name, Age, Height
Jessica Jesse, 18, 150
Now what I want to do is use a shell script to read the name age and height which looks like this:
#!bin/sh
INPUT='template.csv
while read Name Age Height
do
echo... (2 Replies)
I have two CSV files in the following format:
First file:
GroupID, PID:TID, IP, Port
Sample data:
0,1000:11,127.0.0.1,445
0,-1:-1,127.0.0.1,800
1,1000:11,127.0.0.1,445
1,-1:-1,127.0.0.1,900
2,1000:11,127.0.0.1,445
2,-1:-1,180.0.0.3,900
Second file:
IP,Port,PID
Sample data... (6 Replies)
hi
i have a file of the following format
FILE1
5 937 8
1860 1850 1
683 2 1
129 2 2
5 938 8
1122 1123 1
20 520 4
1860 1851 1
5 939 8
1122 1124 1
20 521 4i have another file which... (3 Replies)
Hi,
I have several text files. One main file contains the detail data, other have some information to extract data from the main file, and some are empty files. Examples are shown below:
The main file look like:
MainFile.txt
>Header1
data1...data1...
>Header2
data2...data2...
...
...... (2 Replies)
In LVM I have one volume grp and it has two logical volumes A and B and both are full,so I extended my volume grp to 1GB with another hard disk and add this space to A and put my resr data .Now problem is that I get data from first hard disk only but I m unable to find data which is in second hard... (0 Replies)
hi
iam reading data from web page using request socket and curl socket.
now my problem is some the web page containg data as a image so how can i read the data from a image.
thank,inadvance.
sree (3 Replies)
I have a server with SCO Open Server 5 and I need to copy data files from the hard drive. Can this be completed with a Windows PC with the hard drive connected with a USB caddy? I have no other way to do this. Server not running.
TIA
Tim (2 Replies)
Hi All,
I am having trouble through, I am reading the input from tab delimited file containing several records,
e.g.
line1 field1 field2 field3 so on..
line2 field1 field2 field3 so on..
..
..
on the basis of certain fields for each record in input file, I have to retrieve... (1 Reply)
Experts I am new to UNIX shell programming ( or scripting). My problem is that
I have an ASCII file in which column wise data is present, the columns are seperated by spaces. I want to read each columns data and store it in arrays, next I will be using the arrays to perform some numerical... (1 Reply)