NEED HELP FROM SHELL EXPERTS ASAP ..Compare of two files
I have seen the old forums before posting this thread...I did not find the designated answer for my shell script... I am novice in shell programming:
Can some one help on how i can loop with in the loop when comparing two files...
I need to compare ID in File1 with IDs in File2...If the ID match output to File3. If the ID in FILE1 do not find in FILE2 then check to see what id is that (compare should be wild card) like if file1 id = 'un*' then output all the "un*" ids into file4 otherwise rest of the ids to go into file5.
File1 looks like:
File2 looks like :
Please help me...
Thanks
Given this one long stream of data (all one line):
<TransactionDetail><TransactionHeader><ErrorLogging>YES</ErrorLogging><HistoryLogging>YES</HistoryLogging><ErrorDetection>NO</ErrorD... (4 Replies)
hi ,
I am new to shell.
i have a requirement to compare the one file from one dir to other 7 files of other dir and to find out the duplicate files from the 7 files .
the name of the all files go on changing every weekend.
Thanks in advance (4 Replies)
hi experts
please help me to compare two files which are in different directory
file1<file will be master file>
(/home/rev/mas.txt}
ex x1
x2
file2 <will be in different folder>
(/home/rev/per/.....)
ex x3
x4
the filesinside per folder i need to compare with master file... (1 Reply)
Hi all,
I really need your help ASAP on this. Below is the description of my problem and a sketch of Autosys
Job Activity Console
++++++++++++++++++++++++++++++++
File View Options
+++++++++++++++++++++++++++++++
Job Name Description Status Command Machine... (1 Reply)
I have a directory with about 6 files that we receive regularly. these 6 files contain information for 3 different units, 2 for each unit. files related to a specific unit are named similarly with a change in number at the end of the file. the numbers should be sequential. for each grouping of... (3 Replies)
I have two files; file A and file B. I need all the entries of file A to be compared with file B line by line. If the entry exists on file B, then save those on file C; if no then save it on file D
Note :- all the columns of the lines of file A need to be compared, except the last two columns... (8 Replies)
Hi,
1) Need help to write script in KSH to detect a duplicate file.
2) The original file needs to be moved from current path to a different path
3) The duplicate file should continue to stay in the same path.
Exact file names & duplicate file names are given below. Please help me at the... (7 Replies)
Hi
i want to compare two files and i need the o/p of only difference
here the files
file1
achilles
aedxbepo
aedxbwdm01
aedxbwdm02
albedo
amarice
ambrister
anakin
anton
argon
artephius
asgard
avatar
aymara (10 Replies)
Hi,
I need to compare two files using shell scripting.
Say like:
File1
AAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCCCCCCC
eeeeeeeeeeeeeeeeeeeeeeeee
DDDDDDDDDDDDDDDDDDDDDDDDDDDD
File2
BBBBBBBBBBBBBBBBBBBBB
DDDDDDDDDDDDDDDDDDDDDDDDDDDD
AAAAAAAAAAAAAAAAAAAA
... (6 Replies)
Hi ,
I had a requirement to compare two files whether the two files are same or different .... like(files contaisn of two columns each)
file1.txt
121343432213 1234
64564564646 2345
343423424234 2456
file2.txt
121343432213 1234
64564564646 2345
31231313123 3455
how to... (2 Replies)