Search Results

Search: Posts Made By: effay
3,874
Posted By effay
Matching string on two files based on match rules.
Awesome !! Working perfectly. Thank you very much for your help.
3,874
Posted By effay
Matching string on two files based on match rules.
Here are the input files and expected output

file1
Adrfld,category
PO BOX,A
POST,A
avenue,A
business,X
bus terminus,A
PO BOX,A

file2
Adrptrn,active,blankrule,cntry
ave,y,n,usa...
3,874
Posted By effay
Matching string on two files based on match rules.
Yes, the Active flag will always be 'Y' , but there are other columns on file2 (apart from Adrpatern,Activeflg) that have to be carried out on the output as is for down stream processing. Is there a...
3,874
Posted By effay
Matching string on two files based on match rules.
Thanks again for the detailed explanation!!

one point i missed out during the initial post is that there can be max of 2 trailing spaces in the pattern file (file 2) represented by ##. I tried...
3,874
Posted By effay
Matching string on two files based on match rules.
Thanks a ton for your help !!! its working perfectly fine. As im new to unix, appreciate if you could explain the solution and also suggest books to learn awk. Many thanks.
3,874
Posted By effay
Matching string on two files based on match rules.
Hi,

How to check if a string on file2 exactly matches with a part or complete string on file1, and return a match indicator based on some match rules.
1) only records on file1 with category A...
Showing results 1 to 6 of 6

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