10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI!!
I am trying to compare two files using AWK but I have some problems. I need to count how many times letters are used in two texts. This is my script
{
long=length($0)
for (i=1;i<=long;i++)
{
aux=substr($0,i,1)
if ( aux != " " && aux != "" )
... (7 Replies)
Discussion started by: ettore8888
7 Replies
2. Shell Programming and Scripting
I have a below requirement and trying to compare the files using awk
File 1 - Already stored on a prev day
id | text | email id
---------------------------------
89564|this is line 1 | xyz@sample.txt
985384|this is line 2 | abc@sample.txt
657342|this is line 3 |... (3 Replies)
Discussion started by: rakesh_411
3 Replies
3. Shell Programming and Scripting
I have 2 files,
file1:
alfa numbers numbers
vita numbers numbers
gama numbers numbers
delta numbers numbers
epsilon numbers numbers
zita numbers numbers
...
file2:
'zita' keepnumbers keepnumbers keepnumbers
'gama' keepnumbers keepnumbers keepnumbers
'misc' ... (11 Replies)
Discussion started by: phaethon
11 Replies
4. Shell Programming and Scripting
I have two files
File1 and File2 will contains same number of fields.
The rows in File1 can be found anywhere in File2.
If any rows from File1 doesn't match to File2 then write those records to a File1 log file.
If any rows from File2 doesn't match to File1 then write those records to a File2... (6 Replies)
Discussion started by: ranjanp
6 Replies
5. HP-UX
Hi guys,
I have 2 files:
File1
ABC|2203|115.50
ABC|2288|328.12
ABC|2289|611.09
ABC|2290|698
DEF|1513|721.3
DEF|1514|40
DEF|1515|5
File2
ABC|2288|328.12
ABC|2289|666.08
ABC|2290|698.00
DEF|1513|721.30 (3 Replies)
Discussion started by: Eduardo Aceves
3 Replies
6. Shell Programming and Scripting
Hi,
I have a situation to compare one file, say file1.txt with a set of files in directory.The directory contains more than 100 files.
To be more precise, the requirement is to compare the first field of file1.txt with the first field in all the files in the directory.The files in the... (10 Replies)
Discussion started by: anandek
10 Replies
7. Shell Programming and Scripting
Hi,
I want to compare two files using awk and write an output based on if the records matched.
Both the files are space delimitted.
File A:
8351 00000000000636 2009044 -00001.000
8351 00000000000637 2009044 -00002.000
8351 00000000000638 2009044 -00001.000
8351 00000000000640... (7 Replies)
Discussion started by: gpaulose
7 Replies
8. Shell Programming and Scripting
Hi. I'm new to awk and have searched for a solution to my problem, but haven't found the right answer yet. I have two files that look like this:
file1
Delete,3105551234
Delete,3105551236
Delete,5625559876
Delete,5625556789
Delete,5625553456
Delete,5625551234
Delete,5625556956... (8 Replies)
Discussion started by: paul.o
8 Replies
9. Shell Programming and Scripting
I've got two large csv text table files with different number of columns each.
I have to compare them based on first two columns and create resulting file
that would in case of matched first two columns include all values from first one and all values (except first two colums) from second one. I... (5 Replies)
Discussion started by: agb2008
5 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I have a few files with simple data on them. All of the files may contain the same and different data. I need to create a new file that contains data that is on all files at the same time. Let say if word "ffffffff" is on all files it must be in the new file. If word "kkkkkkk" is not on... (1 Reply)
Discussion started by: alxkn
1 Replies