- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Languages and Scripting
- >
- script to replicate diff is not working as expecte...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-02-2014 12:49 PM
12-02-2014 12:49 PM
script to replicate diff is not working as expected
Hi all
I'm really struggling to verify the output of two files using the diff command
I am running sles 10.2 with kernel 2.6.16.60-0.21-smp
the two files being compared are a list of all files and directories from a source server that was migrated to a target host
I am trying to acheive a comparison between the files that have been migrated
here is my diff example
diff --side-by-side --suppress-common-lines Linux-diff-source Linux-diff-matched-target
the output is out of line and differences common lines are being reported different and everything looks out of line!
I need some scripting help to compare the two file
the content looks something like
/usr/lib/vmware-tools/VMCF-SDK: /usr/lib/vmware-tools/VMCF-SDK:
drwxr-xr-x root root 4096 bin32
drwxr-xr-x root root 4096 bin64
drwxr-xr-x root root 4096 lib32
/usr/lib/vmware-tools/VMCF-SDK/bin32: /usr/lib/vmware-tools/VMCF-SDK/bin32:
-r-xr-xr-x root root 700639 c-stubber
/usr/lib/vmware-tools/VMCF-SDK/bin64: /usr/lib/vmware-tools/VMCF-SDK/bin64:
-r-xr-xr-x root root 1545935 c-stubber
/usr/lib/vmware-tools/VMCF-SDK/doc: /usr/lib/vmware-tools/VMCF-SDK/doc:
-rw-r--r-- root root 29682 VMCFClass_8h-source.html
-rw-r--r-- root root 6485 VMCFClass_8h.html
-rw-r--r-- root root 4469 VMCFCoreImplInt_8h-source.html
-rw-r--r-- root root 1416 VMCFCoreImplInt_8h.html
-rw-r--r-- root root 4078 VMCFCoreImpl_8c.html
-rw-r--r-- root root 11760 VMCFCoreImpl_8h-source.html
-rw-r--r-- root root 6513 VMCFCoreImpl_8h.html
-rw-r--r-- root root 4212 VMCFCore_8idl-source.html
-rw-r--r-- root root 3250 VMCFCore_8idl.html
-rw-r--r-- root root 6523 VMCFObjectImpl_8c.html
-rw-r--r-- root root 8563 VMCFObjectImpl_8h-source.html
-rw-r--r-- root root 6033 VMCFObjectImpl_8h.html
-rw-r--r-- root root 2501 annotated.html
-rw-r--r-- root root 1355 dllmain_8c.html
-rw-r--r-- root root 8077 doxygen.css
-rw-r--r-- root root 1795 exceptionVMCFCore_1_1AlreadyExists.html
-rw-r--r-- root root 1399 exceptionVMCFCore_1_1InvalidArguments-members.html
-rw-r--r-- root root 1900 exceptionVMCFCore_1_1InvalidArguments.html
-rw-r--r-- root root 1790 exceptionVMCFCore_1_1InvalidState.html
-rw-r--r-- root root 1785 exceptionVMCFCore_1_1NoResources.html
-rw-r--r-- root root 1780 exceptionVMCFCore_1_1NotAllowed.html
-rw-r--r-- root root 1770 exceptionVMCFCore_1_1NotFound.html
-rw-r--r-- root root 1790 exceptionVMCFCore_1_1NotSupported.html
-rw-r--r-- root root 2687 files.html
both files have over 200000 lines each
any help is greatly appreciated
thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-03-2014 02:43 AM
12-03-2014 02:43 AM
Re: script to replicate diff is not working as expected
can anybody help me out here?
really looking for a solid solution to prove that data I migrated has been successfull on the target node ....
I have been playing around with the grep command that may help
grep -f <taget server filelist> -vfx <source server filelist>
this should give me a list of files that are no longer on the target server or have changed that were originally on source right?
maybe I posted the thread in the wrong catagory?
thank you
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
12-17-2014 07:48 AM
12-17-2014 07:48 AM
Re: script to replicate diff is not working as expected
>>maybe I posted the thread in the wrong catagory?
Yes, this category is for discussion of HP-UX. The options you are using aren't even valid with the HP-UX version of the diff command.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP