This note is a collection of few quick work around to do some linux unix work.
*) diff:
diff -w file1 file2 [ This will remove empty space. ]
diffing b/w local and remote files
diff -w localfile <(ssh remote_server 'cat remote_file')
NOTE: there should not have any space between <(
NOTE: It will be nice if you have a ssh config settings.
diffing b/w two remote files
diff -w <(ssh remote1 'cat remote1_file') <(ssh remote2 'cat remote2_file')
No comments:
Post a Comment