Hello friends,
I have a problem in printing an array..
Example if my array line contains 4 elements like following
line=0002 , line=202200, line=200002, line= 300313
Now one = sprintf line line line line will concatenate my whole array to one.
But I am not sure about the... (7 Replies)
Hello Friends,
I have a txt file like below
//*Init Start
Reg(read,12'h42E,16'h0000);
Nop(5628.5);
//*Init End
//*Main Start
Reg(read,12'h42E,16'h0000);
Nop(5628.5);
//*Main End
I want to calculate the values between //* Init Start & //* Init End
And //*Main Start & //*Main... (5 Replies)
I want to print lines that have "IND" or "ind" or nothing in field 2 or 3
file:
output needed:
Code i wrote:
nawk -F"," '{if(tolower($2||$3) ~"ind"||"")print}' file
Help is appreciated (3 Replies)
In one data file i have values like this
a b c 1 2
e f g 2 3
i j k 3 5
I need to sum up the last 2 columns and make a data file...How i can do that.
a b c 1 2
e f g 2 3
i j k 3 5... (8 Replies)
I have task to find out the min,max, average value of each service for example i searched for " StatementService "
$awk '/VST.*StatementService:/{print $3,$4,$19,$22,$25}' performance.log > smp.log
$cat smp.log
amexgtv VST: : StatementService:1860 StatementService:getCardReference:0... (3 Replies)
Hi,
My file has 2 fields and millions of lines.
variableStep chrom=Uextra span=25
201 0.5952
226 0.330693
251 0.121004
276 0.0736858
301 0.0646982
326 0.0736858
401 0.2952
426 0.230693
451 0.221004
476 0.2736858
Each field either has a... (6 Replies)
Hi friends, I am having 2 files, I just want to compare 2 files each containing 2 columns 1st column is lat, and 2nd column is long, if anyone can understand below logic please help me in writing script with awk.. here each field of file2 needs to be compared with std_file
main
counter=0... (1 Reply)
I am trying to check my logic on a long awk i'm using. I have about 30 checks that I built into an awk and I "believe" I did this right, but I could be wrong.
awk -F\| '
$9 !~ /\/*{1,}*/
$9 ~ /\(-{4}, {2,3}/
$9 ~ /\({6}, {2,3}\)/
$9 ~ /\(\+{5}, {2,3}\)/
$9 ~ /\(\+\+{4}, {2,3}\)/
$9 ~... (8 Replies)
Discussion started by: dagamier
8 Replies
LEARN ABOUT DEBIAN
create_datafile_index
create_datafile_index(3alleg4) Allegro manual create_datafile_index(3alleg4)NAME
create_datafile_index - Creates an index for a datafile. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
DATAFILE_INDEX *create_datafile_index(const char *filename);
DESCRIPTION
Creates an index for a datafile, to speed up loading single objects out of it. This is mostly useful for big datafiles, which you don't
want to load as a whole. The index will store the offset of all objects inside the datafile, and then you can load it quickly with
"load_datafile_object_indexed" later. Use destroy_datafile_index to free the memory used by it again.
Note: If the datafile uses global compression, there is no performance gain from using an index, because seeking to the offset still
requires to uncompress the whole datafile up to that offset. Example:
DATAFILE_INDEX *index = create_datafile_index("huge.dat");
DATAFILE *object = load_datafile_object_indexed(index, 1234);
...
unload_datafile_object(object);
destroy_datafile_index(index);
RETURN VALUE
A pointer value which you can pass to load_datafile_object_indexed.
SEE ALSO destroy_datafile_index(3alleg4), load_datafile_object_indexed(3alleg4)Allegro version 4.4.2 create_datafile_index(3alleg4)