I need to compare same set of files in 2 different servers and generate a list (in STDOUT) which contain all the files that have changed. I don't have permission to create any temp files or folders in either servers.
- One option is to use ' if [ file1 -nt file2 ]'. But for this I need to move file1 to one server and compare there. I may not have permission to write. so that wont work.
Someone suggested using variables. Can we achieve this using variables?