04-15-2013
Still not clear why "1 26" (line #2) is not BAD.
- Not "new data", by your definition.
- Previous number was 32, so difference is 4.
Can you compile a simple C program? This would be easy to write in C, if you can spell out exactly what you want to do. (And if that does not break the forum rules
)
It would be interesting to compare the performance of some C program vs some awk solution.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am going to develop a address book using the shell scripting commands without sed, awk, .... I am thinking to apply the concept of 2 dimenstional array. Can I create a two dimensional array for the insertion/updation/deletion of record in unix. If yes then tell me plz or recommend me some... (1 Reply)
Discussion started by: murtaza
1 Replies
2. UNIX and Linux Applications
Hi
I have a table with name, date in format DD.MM.YYYY.
I need to something like this (I try to explain in pseudo code)
if SYSDATE (current date) minus 6 months > $expiry date
print OK
else print NOK with $name and $expiry date
I know this is possible with Oracle. How to do this... (0 Replies)
Discussion started by: slashdotweenie
0 Replies
3. Shell Programming and Scripting
Hi,
I have one small doubt how to go ahead and process the below requirement.
File Content
1,abc,10
2,xyz,11
3,pqr,12
4,pqr,13
5,pqr,14
Output file expected:
1,mnq,1
1,ddd,2
1,qqq,3
1,sss,4
1,ddd,5
1,eee,6
1,fff,7
1,ddr,8
1,rrd,9 (3 Replies)
Discussion started by: dikesm
3 Replies
4. Shell Programming and Scripting
Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
The output should be
1one
2two
3three
1four
2five
3six (2 Replies)
Discussion started by: supchand
2 Replies
5. Shell Programming and Scripting
Hi,
I have a input file with the following entries:
1one
2two
3three
1four
2five
3six
1seven
1eight
1nine
2ten
2eleven
2twelve
1thirteen
2fourteen
The output should be: (5 Replies)
Discussion started by: supchand
5 Replies
6. Shell Programming and Scripting
I'm trying to compare 2 files for differences in a selct number of fields. When differnces are found it will write the whole record of the second file including appending '|C' out to a delta file. Each record will have 20 fields, but only want to do comparison of 1st 15 fields. The 1st field of... (7 Replies)
Discussion started by: sljnk
7 Replies
7. Shell Programming and Scripting
I have test.xml
<emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp>
<Join><id>101</id><city>london</city><date>06/06/14 2011</date></join>
<Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join>
<Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies
8. Shell Programming and Scripting
I have data coming in the below format for each record
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><testdetials>....</test_sox>
<?xml version="1.0" encoding="UTF-8" standalone="no"?><test_sox... (8 Replies)
Discussion started by: dsravanam
8 Replies
9. Shell Programming and Scripting
Hi,,
I have requirement that i need to get DISTINCT values from a table and if there are two records i need to update it to one record and then need to submit INSERT statements by using the updated value as a parameter. Here is the example follows..
SELECT DISTINCT ID FROM OFFER_GROUP WHERE... (1 Reply)
Discussion started by: Samah
1 Replies
10. Shell Programming and Scripting
Hey,
I am trying to compare formated login and logout dates from one user at a host which I have stored in a tmp directory in order to find out the total login time. I need to compare them in order to find overlapping intervals.
At first I tried to store each log in and logo date in an array... (3 Replies)
Discussion started by: Mumu123
3 Replies
end(3C) end(3C)
NAME
end, edata, etext, __data_start, __text_start - last locations in program
SYNOPSIS
DESCRIPTION
These names refer neither to routines nor to locations with interesting contents. The address of the symbols and is the first address
above the program text. The address of and is the first address above the initialized data region. The address of and is the first
address above the uninitialized data region.
The address of the symbol is the beginning address of the program's data area, and is the beginning address of the program's text area.
The linker defines these symbols with the appropriate values if they are referenced by the program but not defined. The linker issues an
error if the user attempts to define or
When execution begins, the program break (the first location beyond the data) coincides with but the program break can be reset by the rou-
tines of brk(2), malloc(3C), standard input/output (stdio(3S)), the profile option of cc(1), and so on. Thus, the current value of the
program break should be determined by (see brk(2)).
WARNINGS
In C, these names must look like addresses. Thus, use instead of to access the current value of end.
SEE ALSO
System Tools
cc(1) Invoke the HP-UX C compiler
ld(1) Invoke the link editor
Miscellaneous
brk(2) Change data segment space allocation
crt0(3) Execution startup routine
malloc(3C) Main memory allocator
stdio(3S) Standard buffered input/output stream file package
STANDARDS CONFORMANCE
end(3C)