02-06-2009
1,
0
Join Date: Feb 2009
Last Activity: 6 February 2009, 6:47 AM EST
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
Case Study help
Create a Data file with below fields and “|” as delimitor (ac_bal.dat):
A/c No, A/c name ,A/c balance.
1| Mani |1000.00
2| Vikram|1500.00
Create another file say (ac_bal.ctl) which file structure as
Files name, record count ,total balances
Ac_bal.dat|2|3500.00
Please write script in (awk or shell script) choice is yours.
Steps to be done
1.) You need to read the based on filename in (.ctl) file assuming file is stored in same folder itself.
2.) Validate the statistics of record count and a/c balance with .dat file.
3.) Create result.dat file to store the result of comparison.
Last edited by Neo; 02-06-2009 at 07:16 AM..
Reason: removed email