Awk: Is it possible to release storage?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Awk: Is it possible to release storage?
# 1  
Old 01-03-2008
Awk: Is it possible to release storage?

Hello,

Is it possible in awk to release storage that has been allocated?

I am reading two large similar text files and comparing them to create a delta. Each time I read a line from a file I store it in an array - one for each file. It is impossible to know in advance how far it may be necessary to backtrack up each file/array to re-establish correspondence, but once a new correspondence has been established all the old array elements are no longer needed. Can they be returned to the system to reallocate?

I am using gawk 3.1.5 from cygwin and running under Windows XP. (Please don't scream - I wish it was Unix, too!)
# 2  
Old 01-04-2008
look into awk's "delete"
# 3  
Old 01-04-2008
Thank you.
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Variable storage using awk

Hi, there is a file which contains some values in column format. I want to store those values in a variable.but when i am using awk it is storing all the values at a time. x=`awk '{print $1}' test2.txt` echo $x ab cd mn jk yt but i want the values to be stored one by one in that variable.... (3 Replies)
Discussion started by: arijitsaha
3 Replies

2. Filesystems, Disks and Memory

Veritas Storage Foundation basic and Core cluster solaris 10 release 7 install

After much hitting my head to the wall with this meesages root@crasher /workzone/dvd4_sfb-sol_x64]#./installer -verbose -installonly 5.0MP3 Installation Program Copyright (c) 2008 Symantec Corporation. All rights reserved. Symantec, the Symantec... (1 Reply)
Discussion started by: tristezo2k
1 Replies
Login or Register to Ask a Question