The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ethical Dilema iBot IT Security RSS 0 03-01-2009 06:10 AM
Need help in scripting ... itsmehihihi Shell Programming and Scripting 2 08-25-2008 08:56 AM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 08:12 AM
scripting guru's pls help me with scripting on AIX thatiprashant Shell Programming and Scripting 1 01-20-2006 07:58 PM
Scripting? woofie What's on Your Mind? 1 03-09-2005 07:03 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-06-2009
family_guy family_guy is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 11
scripting dilema

I have a script which writes to a file using date and the end filename would be filename`date +%d%b%y. Now when i have 2 files ( 2 days ), i want to compare them using an automated script and then put the differences if there are into another file.

Can someone please help me how to automize this with a script...thanks in advance...
  #2 (permalink)  
Old 03-06-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
Are you on Linux, or does your system have GNU tools - specifically gnu date?
  #3 (permalink)  
Old 03-06-2009
family_guy family_guy is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 11
i am on AIX ....the filename would be something like this

filename06Mar09
  #4 (permalink)  
Old 03-09-2009
zTodd zTodd is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 23
Check this-
man diff
  #5 (permalink)  
Old 03-09-2009
jpgleon jpgleon is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Hello

There must be another way of doing this, but you can try:

diff -y file1.txt file2.txt > file3.txt

regards
Pura vida
Sponsored Links
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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