- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need a unique Diff command
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
09-20-2004 03:08 AM
09-20-2004 03:08 AM
So my question is there a diff command that will ONLY give us the lines that are diff in the NEW file only from the old file or not in the old file. So we only have to work with any changes or additions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:13 AM
09-20-2004 03:13 AM
Re: Need a unique Diff command
What kind of storage is the database on?
What kind of backups are you doing?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:18 AM
09-20-2004 03:18 AM
Re: Need a unique Diff command
Look like you could try: comm -13
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:26 AM
09-20-2004 03:26 AM
Re: Need a unique Diff command
It is a sybase database dump to a flat file and zipped up for us. We maintain a database for them and they haven't gotten into the update change only part yet, so all they can do is provide a full dump to a flat file and we turn around process it. I am just the unix guy who is in charge of the sftp site and provide the nightly file to our database people to process and I am just trying to figure out a shorter process to do this.
The comm -13 gives me the two sets of line the new and the old, I just one lines from the new file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:32 AM
09-20-2004 03:32 AM
Re: Need a unique Diff command
diff file_old file_new | perl -ne's/^> // and print'
or
diff file_old file_new | grep '^>' | sed 's/^> //'
would give you the new lines only
Enjoy, Have FUN! H.Merijn