Search Results

Search: Posts Made By: Ankita Talukdar
2,220
Posted By Ankita Talukdar
Hi Thank you Makarand. The command is...
Hi

Thank you Makarand. The command is working fine.

Thank you all for prompt responses and efforts


-Ankita
2,220
Posted By Ankita Talukdar
Hi awk version is GNU Awk 3.1.5 here...
Hi

awk version is GNU Awk 3.1.5

here again the files are- there is no space between the columns and columns are separeted with "|"
file1.txt

4001|Y
4221|Y
282501|Y
933502|N
933505|N
...
2,220
Posted By Ankita Talukdar
Hi Rudi, I have exceuted the same command...
Hi Rudi,

I have exceuted the same command that you have provided.

awk -F"[\| ]*" 'NR==FNR {if ($3=="N") T[$2]; next} ($2 in T) {next} 1' file1.txt file2.txt > new.txt


but its giving me...
2,220
Posted By Ankita Talukdar
Hi, Thank you But Concern here is Some of...
Hi,

Thank you
But Concern here is Some of entries as shown below,might not be the content of file2

4316|Y


Thanks
Ankita
2,220
Posted By Ankita Talukdar
Hi, Thanks for the help. i ran the...
Hi,

Thanks for the help.

i ran the command

awk -F"|" 'NR==FNR {if ($3=="N") T[$2]; next} ($2 in T) {next} 1' file1.txt file2.txt > new.txt


Its output -new.txt

4001|Y
4221|Y...
2,220
Posted By Ankita Talukdar
To compare two files,Output into a new file
Hi

Please help me to compare two files and output into a new file
file1.txt

15114933 |4001
15291649 |933502
15764675 |4316
15764678 |4316
15761974 |282501
15673104 ...
1,140
Posted By Ankita Talukdar
Its working.Thank you :)
Its working.Thank you :)
1,140
Posted By Ankita Talukdar
Compare two files and output to new file
Hi,
Please help How to compare two files-
Any mismatches 2nd and 3rd column's values corresponding to 1st column.

file1
15294024|Not Allowed|null
15291398|Not Allowed|null
15303292|Dropship...
1,448
Posted By Ankita Talukdar
Hi, Thanks for the command. Output...
Hi,

Thanks for the command.

Output file would be-
10001093|234
10001093|40
10003251|4683
10003251|463005
10003252|46
10003260|468
23450986|123

Ankita
1,448
Posted By Ankita Talukdar
Compare two txt files,mismatches will be in new txt files
Hi,
Below are the sample data for txt files.

txt file 1
Partnumber|catgroup_id
10001082|46016
10001093|4680
10001093|386003
10001093|463004
10003251|683
10003251|63005
10003252|463005...
Showing results 1 to 10 of 10

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