Search Results

Search: Posts Made By: tpk
4,842
Posted By tpk
Function not found error
Hi All,

I have written one shell script where I should call a function by passing variables to the actual function based on some condition.

Each time I run the script I am getting the below...
6,319
Posted By tpk
Hi MadeInGerrmany, I am not sure, My point...
Hi MadeInGerrmany,

I am not sure, My point is if we can match the sum with that of trailer record manually when opened through excel, why cant unix do that validation.

How can we make the code...
6,319
Posted By tpk
Hi MadeInGermany, Thank You for the...
Hi MadeInGermany,

Thank You for the solution!!!!.

The solution is working for pf_20150127.csv file, I ran the same script for pf_20150325.csv file and it got failed with the below error

...
6,319
Posted By tpk
Hi All/Experts, Let me put my requirement in...
Hi All/Experts,

Let me put my requirement in short and precise, PFB my requirement and issue where I am stuck,


1. In the attached zip file, I want to read the csv files and in the csv files,...
6,319
Posted By tpk
Hi Rudic, I don't get any issue with...
Hi Rudic,

I don't get any issue with pf_20150127.csv. The sums are matching with that of trailer record.

When I execute the same shell for pf_20150325.csv it gives me wrongly. The sum which I...
6,319
Posted By tpk
Match sum of values in each column with the corresponding column value present in trailer record
Hi All,

I have a requirement where I need to find sum of values from column D through O present in a CSV file and check whether the sum of each Individual column matches with the value present for...
1,582
Posted By tpk
Hi disedorgue, I have tried with that it's...
Hi disedorgue,

I have tried with that it's not working, I have tried with the MClubWA_20150204.txt file.

I have executed the below command and taken count, the count seems to be same as 26...
1,582
Posted By tpk
Hi Rudic and disedorgue, Thank You for your...
Hi Rudic and disedorgue,

Thank You for your thoughts. Even I thought of similar options but nothing worked.

If we forget about the header, presuming that the header will not be more than 5...
1,582
Posted By tpk
Check for empty line at end of a dynamic header in each file
Hi Folks,

I have a requirement to develop a shell script. PFB my requirement,

Requirement:
I need to check an empty line after the end of each header in respective file and if a empty line is...
2,147
Posted By tpk
Hi Rudic, Thank You Very much for providing...
Hi Rudic,

Thank You Very much for providing an excellent solution. But there is a problem here, The reason why I am truncating Header and Trailer records is for header and trailer records for...
2,147
Posted By tpk
Hi All, Can any one help me with the code to...
Hi All,

Can any one help me with the code to achieve the requirement I am trying to achieve which I mentioned in Post 1

The script will loop through all files that start with pf_YYYYMMDD.csv...
2,147
Posted By tpk
Hi Rudic, Thank you for providing your...
Hi Rudic,

Thank you for providing your insights and your expert suggestions. Can you please show the code how we can achieve every thing in awk.

Please do the needful.

With Regards,
TPK
2,147
Posted By tpk
Find Null values in Columns and fail execution by displaying error message
Hi All,

I am new to shell scripting. I have a requirement as part of my job to find out null/empty values in column 2 and column 3 from a CSV file and exit the further execution of script by...
Showing results 1 to 13 of 13

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