The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using diff puzzler UNIX for Dummies Questions & Answers 2 03-18-2009 05:18 AM
Simulate SVN diff using plain diff ackbarr Shell Programming and Scripting 3 02-07-2009 01:01 PM
diff between TAR+zip+FTP and TAR+FTP swarup2008 UNIX for Dummies Questions & Answers 1 07-02-2008 04:51 AM
Diff b/w $@ and $# PradeepRed Shell Programming and Scripting 4 01-24-2006 04:02 AM
diff 2 files; output diff's to 3rd file blt123 Shell Programming and Scripting 2 05-28-2002 12:29 PM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-09-2009
sdhn1900 sdhn1900 is offline
Registered User
  
 

Join Date: May 2009
Posts: 5
diff

OS : SuSE Linux 10 (zOS)
I create two files test1 and test2

/home/me # more test1
1 2 3 4 5

/home/me # more test2
1 2 3

I entered the following command on cronjob and its work

diff /home/me/test1 /home/me/test2 > /home/me/test3
its created test3.

But the output of test3 is as below:

# more test3
1c1
< 1 2 3 4 5
---
> 1 2 3


but I want only differnce such as

> 4 5

Any help will be appreciated.

sdhn
 

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:22 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