Search Results

Search: Posts Made By: kalia4u
5,024
Posted By kalia4u
sorry attached wrong file please find updated file
sorry attached wrong file please find updated file
5,024
Posted By kalia4u
Hi Don, I WANT TO INSERT A HEADER .PFA...
Hi Don,

I WANT TO INSERT A HEADER .PFA sample file

#!/bin/ksh
sort -t'|' -k1,1n -k2,2 "${1:-file}" |
awk -F'|' '
function pt(level, i) {
printf("%d%s%s%sTotal%s", acno, OFS, name, OFS,...
5,024
Posted By kalia4u
Hi Don, some changes in the requirements input...
Hi Don,
some changes in the requirements input file has no header while display output I want to insert header below mentioned
line ...
5,024
Posted By kalia4u
Sorry i should mention while this program print...
Sorry i should mention while this program print the output as per my requirements
5,024
Posted By kalia4u
Getting issue while print the output header ...
Getting issue while print the output header

print "ACNO|NAME|TOWN|VAL1|VAL2|VAL3|VAL4.........V25"
5,024
Posted By kalia4u
Hi Don, Many many thanks a lot for ur replay....
Hi Don,
Many many thanks a lot for ur replay. Issue got resolved
This is the best side never seen before and also i wll recomanded this side to my friends so that they can get help from you gays...
1,276
Posted By kalia4u
Thanks a lot for your replay issue got resolved
Thanks a lot for your replay issue got resolved
1,276
Posted By kalia4u
Not able to sort two fields and printf not displaying the correct values
Not able to sorting two fileds resolved printf issue

01-1000/9|JAN
01-0000/6|MAN
01-1010/2|JAN
01-1010/2|JAN
01-1010/2|JAN
01-1000/9|JAN
01-1000/9|JAN
01-1000/9|SAA
01-1000/9|SAA...
5,024
Posted By kalia4u
Thanks For yours replay Sorry for bother you...
Thanks For yours replay
Sorry for bother you agian i missed few things .yes it is matching with our requirements i cann’t share my input file due to some issue only thing i can apply this logic as...
5,024
Posted By kalia4u
1.Please remove the only the Grand total record...
1.Please remove the only the Grand total record logic in the script Trying to remove the logic but getting error.
Script is displaying right output for Total and ACNO Total(ACNO wise) (please...
5,024
Posted By kalia4u
Match with ACNO & NAME if it matched calculate...
Match with ACNO & NAME if it matched calculate the total val1 val2 val3 and val4 and GT is total of ACNO wise.Using AIX Operating system and KSh shell
for better use this table ...
5,024
Posted By kalia4u
sorry for getting replay late Busy with other...
sorry for getting replay late Busy with other task

awk -F\| '
FNR==1 {comp=$1 and $2
}
comp!=$1 && $2 {print "Total", add3, add4,add5,add6;
}
{
add3+=$3
...
5,024
Posted By kalia4u
Calculate the total 4 field based on the conditions
Please help me to write a script
Match with ACNO & NAME if it matched calculate the total val1 val2 val3 and val4 and GT is total of ACNO wise.please check the output

Table
-----------------...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy