The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Report of duplicate files based on part of the filename sudheshnaiyer UNIX for Dummies Questions & Answers 1 12-18-2007 04:31 PM
Print to ps2pdf print queue Sean_69 SUN Solaris 2 10-22-2007 12:00 PM
Print Problem in UNIX. Need to know the option to specify the print paper size ukarthik HP-UX 1 06-07-2007 10:35 AM
help to print report dolly83 Shell Programming and Scripting 0 08-22-2006 01:49 PM
How do I get awk to print a " in it's print part? LordJezo Shell Programming and Scripting 2 06-27-2006 10:16 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-22-2005
Golive Golive is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 2
how to print part of report ?

HellO.

I need small help, daily am printing one report witch contain Dynamic Data changed daily, more or less,

What I need is just to print this Changing data because the rest of report is Huge and we lost a lot of paper because of that

Example of what I need to print

Bank ****** (SAOG)
Actioned Date: 12/05/5005
Partition : Z21


The Junk Data

Bank ****** (SAOG)
Actioned Date: 12/05/5005


As you see only I need the to print the part of Partition,
  #2 (permalink)  
Old 06-22-2005
Golive Golive is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 2
By the way , Sorry for my Lang
  #3 (permalink)  
Old 06-22-2005
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
If the format is plain text you can use the diff command.

# diff oldrpt.out newrpt.out |grep ^\> > newdata.out

I believe this will work to save what is new. Very elementary but off the top of my head. that bit in the middle after grep is to pull only the lines shown to be different from the new file.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0