Re: compair files
- From: Ed Morton <morton@xxxxxxxxxxxxxx>
- Date: Tue, 19 Jun 2007 06:52:09 -0500
Nikunj Khakhar wrote:
On Jun 19, 12:23 pm, "Joachim Schmitz" <nospam.j...@schmitz-
digital.de> wrote:
"Nikunj Khakhar" <nikunj.khak...@xxxxxxxxx> schrieb im Newsbeitragnews:1182222488.212572.276020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> Hi Gurus ,
i have a standard file, which contain server name (solairs zones) ,
i want such script that , output of script should compair with the
standard file. if any missisng than give alert .
Inshort want to compair command output with the standard file using
script .
pl. give ideas/sample script ..
For text files 'diff' might be what you're looking for, for binary files try
'cmp'.
Bye, Jojo
Thanks jojo,
diff and cmp we have used , we wanted some idea on the advace
technique which we can apply on to our script like awk or sed , which
scan or ideal text file when execute the script and if it gives
different output than ideal text find (ie : string not found from the
text file ) than it echo some out put like "not found"
thanks in advance.
nikunj
The solution depends what your idea of a "difference" is. If the same lines appear in both files but in a different order are the files "different"? If the same values appear in both files, but one value appears twice in one file and only once in the other, are the files "different"? etc....
Ed.
.
- References:
- compair files
- From: Nikunj Khakhar
- Re: compair files
- From: Joachim Schmitz
- Re: compair files
- From: Nikunj Khakhar
- compair files
- Prev by Date: Re: AWK problem need help
- Next by Date: Re: if [ -L $f ] ; then ln -s $(basename $(... $f)) $(basename $f) ; fi
- Previous by thread: Re: compair files
- Next by thread: Re: compair files
- Index(es):
Relevant Pages
|