Search Results

Search: Posts Made By: kcdg859
2,380
Posted By kcdg859
Need to sum up a column value from multiple files into Credit and Debit categories using awk command
i have multiple files with Batch Header, Record detail & Batch trailer data in the files like :

BH 20150225950050N8262
RD 20140918000000 99999999 unk Deferred Settlement -13950
BT01 -13950
...
23,601
Posted By kcdg859
What is i have to fetch only particular columns...
What is i have to fetch only particular columns like $1,$2 with an extra condition like $5='BH' and $1=7518

Thanks for your quick reply.
23,601
Posted By kcdg859
Print column details from fixed width file using awk command
hi,

i have a fixed width file with multiple columns and need to print data using awk command.
i use: awk -F "|" '($5 == BH) {print $1,$2,$3}' <non_AIM target>.txt for a delimiter file.
but now...
1,504
Posted By kcdg859
Sorry Akshay...i got it wrong...ur code suits my...
Sorry Akshay...i got it wrong...ur code suits my requirement exactly...
I verified it...
But can i add a specialized header and footer info dynamically while splitting the files...for every...
1,504
Posted By kcdg859
Hi Akshay, Thank you for your answer...It...
Hi Akshay,

Thank you for your answer...It works...
But as i said i see the whole output is coming in 1 single line...
Can u help me in getting the output in separate lines like in similar format...
1,504
Posted By kcdg859
Split files into smaller ones with 1000 hierarchies in a single file.
input file:
AD,00,--,---,---,---,---,---,---,--,--,---
AM,000,---,---,---,---,---,---
AR, ,---,--,---,---
AA,---,---,---,---
AT,---
AU,---,---,---
AS,---,---
...
Showing results 1 to 6 of 6

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