|
Answer» here is ur answer..... 1Shell Programming & ScriptingShell script (sh file) logic to compare contents of one file with another file and output to fileShell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get...2Shell Programming & ScriptingHow to compare two file contents which created within one hour?Hi Gurus, I need to compare two file contents and log the difference. the detail as below: in current directory there is file abc20140728_1020.txt abc20140728_1110.txt I need to find the files which created within 60 minutes first then compare the contents. I am able to use find...3Shell Programming & ScriptingFolder contents getting appended as strings while redirecting file contents to a variableHi one of the output of the command is as below # sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/ /' Resource List : *************************** 1. row *************************** ...4Shell Programming & ScriptingReplace partial contents of file with contents read from other fileHi, I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file. i am able to...5Shell Programming & ScriptingI want to delete the contents of a file which are matching with contents of other fileHi, I want to delete the contents of a file which are matching with contents of other file in shell scripting. Ex. file1 sheel,SUMIT,1,2,3,4,5,6,7,8 sumit,rana,2,3,4,5,6,7,8,9 GRADE,pass,2,3,4,5,6,232,1,1 name,sur,33,1,4,12,3,5,6,8 sheel,pass,2,3,4,5,6,232,1,1 FILE2...6Shell Programming & Scriptingscript to grep a pattern from file compare contents with another file and replaceHi All, Need help on this I have 2 files one file file1 which has several entries as : define service{ hostgroup_name !host1,!host5,!host6,.* service_description check_nrpe } define service{ hostgroup_name !host2,!host4,!host6,.* service_description check_opt } another...7Shell Programming & Scriptingshell script to compare file contentsHello Has ANYONE got an example shell script that I can use to compare the contents of two files. The files should contain the same contents, eg. file1.txt apple pear grape file2.txt apple pear grape8Shell Programming & ScriptingCompare two files and remove all the contents of one file from anotherHi, I have two files, in which the second file has exactly the same contents of the first file with some additional records. Now, if I want to remove those matching lines from file2 and print only the extra contents which the first file does not have, I could use the below unsophisticated...9Shell Programming & ScriptingCompare & replace contents within a fileI have 2 files file1 1 TMQUEUE QUE1 STMW633A 100 DMADM DOMGRPSTMW633A STMW633A 100 GWADM GWTGRPSTMW633A STMW633A 100 GWADM GWTGRPSTMW633AA STMW633A 100 GWADM GWTGRPSTMW638A STMW638A 100 TMSYSEVT EVTGRPSTMW633A STMW633A 100 TMSYSEVT ...10Original Questions & Answerscompare array contents with fileI have an array "arrA" with the following contents: A0012 Paint Shop.doc ES001 Contract Signature.doc Budget Plan.pdf TS PWS.pdf My data file "Files.dat" has the same contents: A0012 Paint Shop.doc ES001 Contract Signature.doc Budget Plan.pdf TS PWS.pdf I have a script that compares...Explanation:Please mark my answer as brainliest answer..
|