04-07-2009
40,
0
Join Date: Jul 2008
Last Activity: 7 August 2013, 11:31 PM EDT
Posts: 40
Thanks Given: 0
Thanked 0 Times in 0 Posts
File comparition
cat file1
xxabcd.p
xxmcqe.p
xxabpc.p
xxcmaa.p
xxjlkps.p
cat file2
xxabcd.r
xxmcqe.r
xxabdc.r
xxcmaa.r
xxjlkps.r
Instead of .p .r in the file2,
My question is
compare the file1 and file2
1. Except .r and .p difference is ok,any other miss match it should give false
2. Otherwise give the result as true.
Kindly give the command or script for this.