Thank you.... It worked perfectly. I have made some corrections to skip the line which contains the 'code'
/^Code/ {
code = $4
if (code != "") {
file = "print/"code".txt";
for (i = 0; i <= n; i++) {
print records[i] > file;
}
n = 0;
}
code = $4...
Hi
I have a file with following type rrcrds
Field1 field 2...…...field7
Field1 field 2...…...field7
.
.
.
Code 1111222233
Field1 field 2...…...field7
Field1 field 2...…...field7
.
.
.
Code 111122347
Like after every few records the column total written with a code.
Now I would like to write...
Thank you very much...but...sorry! could you please explain the syntax. I have gone through string manipulation functions in gnu awk manual, but could not understand your syntax.
Hi
Is there any shorter way to use a comma separator for Indian Number system?
its like ##,##,##,##,###.##. I have written the following code but its quite lengthy...
function comma(n){
if(length(n) <= 3 ){ n = n}else
if(length(n) == 4 ){ n = substr(n,1,1)","substr(n,2)}else...
Hi,
I am using getline to check whether input file is available or not.
The following is working fine:
Input file name: file<ym>
read -p "Enter month : " ym
awk 'BEGIN{
print getline < "file'$ym'" <0 ? "Not Available" : "Available"
}'
but when i use the variable within awk its not working...
Yes, but actually ytable is a one time creation, yearly once. The xtable is dependent on users input (manually given data).
We are having a query to create a dummy table by updating the ytable with xtable and also adding some(6) calculating fields. This dummy table is used for making some...
( First of all I am very new to Access, please excuse)
I am storing the values in xtable.
The ytable is like a master table. I am restricting the xtable's entries to ytable primary field.
The same field is a primary field in xtable also.
To be specific:
ytable fields are:
id(primary)...
Hi
I have created a Form with few text fields attached to a xtable. I am taking a primary field value from ytable through a combo box.
When I select a value through combo the relevant fields of the xtable are not populating.
My aim is to check the xtable primary value through ytable to...
Hi
I have a file like
2291, 382718.00
2291, 19338.00
2291, 9073.00
2292, 4707.00
2293, 495847.00
2293, 157310.00
2293, 63582.00
2293, 100059.00
2293, 2843.00
2293, 58597.00
2293, 14836.00
2293, 24204.00
I want to sum the second column and place...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.