Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare two varilabes

Status
Not open for further replies.

jgiri

Programmer
May 9, 2010
6
0
0
US
Hello,

I know the subject seems really simple, maybe it is simple :)

I am trying compare two variables, both of these variables are FILEHANDLE variables, they contain apache config files. I know I can use file compare to compare these, but I was wondering if I can just compare config files with variables, if there is a difference in files copy over the new config files.

Thanks in advance
 
So... to understand the problem better, do you mean the files may not be identical, byte-for-byte, but you want to check whether the configuration values defined in the files are the same?

Otherwise why not just compare file sizes or checksums?

Annihilannic.
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top