- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Do we have a wiser diff?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Report Inappropriate Content
06-27-2011 11:45 PM
06-27-2011 11:45 PM
Hi dears,
Do we have a wiser diff?
I want to compare two csv files and analyze the change to get what is added, deleted and modified. For example:
File1:
2,2,0,0030D303FE82,s002c02p0,10.87.134.222,acceSS7
2,2,1,0030D303FE50,s002c02p1,10.87.134.223,acceSS7
2,2,2,0030D300372E,s002c02p2,10.87.134.224,acceSS7
2,2,3,0030D300372D,s002c02p3,10.87.134.225,acceSS7
2,2,4,0030D300372A,s002c02p4,10.87.134.226,acceSS7
2,2,5,0030D300372B,s002c02p5,10.87.134.227,acceSS7
File2:
2,2,1,0030D303FE50,s002c02p1,10.87.134.223,acceSS7
2,2,2,0030D300372E,s002c02p2,10.87.134.224,acceSS7
2,2,3,0030D300372D,s002c02p3,10.87.134.225,acceSS7
2,4,0,0800FFFFFFFF,s002c04p0,0.0.0.0,acceSS7
2,5,0,0800FFFFFFFF,s002c05p0,0.0.0.0,acceSS7
diff file1 file2
2d1
< 2,2,0,0030D303FE82,s002c02p0,10.87.134.222,acceSS7
6,7c5,6
< 2,2,4,0030D300372A,s002c02p4,10.87.134.226,acceSS7
< 2,2,5,0030D300372B,s002c02p5,10.87.134.227,acceSS7
---
> 2,4,0,0800FFFFFFFF,s002c04p0,0.0.0.0,acceSS7
> 2,5,0,0800FFFFFFFF,s002c05p0,0.0.0.0,acceSS7
The first change is simple and diff is right. The second change is actually a deletion combined with an addition but diff can only tell it as a modification.
Any chance we have such a tool diff to tell what I want or another tool can do? Please advise.
Apologize for asking a stupid question and thanks a lot for your time.
Regards
Kang
Solved! Go to Solution.
- Tags:
- diff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2011 12:08 AM - edited 06-28-2011 01:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2011 10:47 PM
06-28-2011 10:47 PM
Re: Do we have a wiser diff?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2011 11:47 AM
06-29-2011 11:47 AM
Re: Do we have a wiser diff?
If not for command line tool, you may consider tkdiff or beyond compare (may need to recompile on HP-UX).