LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2008, 06:36 AM   #1
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Rep: Reputation: 15
Cool will 'diff' give the difference b/c the files under subdir


hi all,

Will after diff -Naur olddir newdir >test.patch command test.patch include the difference b/w the files under subdirectories of olddir and newdir.
 
Old 01-16-2008, 06:58 AM   #2
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
See the output on my computer:
Code:
Deepu :: diff applications/ coding/
Only in applications/: AdobeReader_enu-8.1.1-1.i486.tar.gz
Only in applications/: axel-1.0b.tar.gz
Only in coding/: c
Only in applications/: D-GFX_Dark_Skin.vlt
Only in applications/: ImageMagick-6.3.7-2.tar.gz
Only in applications/: install_flash_player_9_linux.tar.gz
Only in applications/: j2re-1_4_2_16-linux-i586.bin
Only in applications/: java_ee_sdk-5_03-linux.bin
Only in applications/: jdk-6u3-linux-i586.bin
Only in applications/: jre-1_5_0_14-linux-i586.bin
Only in applications/: jre-6u3-linux-i586.bin&File=jre-6u3-linux-i586.bin
Only in applications/: jUploadr-1.1.2-linuxGTK-i386.tar.gz
Only in applications/: libX11-1.0.3-8.fc7.i386.rpm
Only in applications/: libX11-1.0.3-8.fc7.src.rpm
Only in applications/: libX11-devel-1.0.3-8.fc7.i386.rpm
Only in applications/: livna-release-8.rpm
Only in applications/: MPlayer-1.0rc2.tar.bz2
Only in applications/: prozilla-2.0.4.tar.bz2
Only in applications/: vlc-0.8.6d.tar.bz2
Only in applications/: vlcosx.vlt
Here, applications and coding are two different directories. It lists the differences in the files inside them!
 
Old 01-16-2008, 06:59 AM   #3
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
See the output on my computer:
Code:
Deepu :: diff applications/ coding/
Only in applications/: AdobeReader_enu-8.1.1-1.i486.tar.gz
Only in applications/: axel-1.0b.tar.gz
Only in coding/: c
Only in applications/: D-GFX_Dark_Skin.vlt
Only in applications/: ImageMagick-6.3.7-2.tar.gz
Only in applications/: install_flash_player_9_linux.tar.gz
Only in applications/: j2re-1_4_2_16-linux-i586.bin
Only in applications/: java_ee_sdk-5_03-linux.bin
Only in applications/: jdk-6u3-linux-i586.bin
Only in applications/: jre-1_5_0_14-linux-i586.bin
Only in applications/: jre-6u3-linux-i586.bin&File=jre-6u3-linux-i586.bin
Only in applications/: jUploadr-1.1.2-linuxGTK-i386.tar.gz
Only in applications/: libX11-1.0.3-8.fc7.i386.rpm
Only in applications/: libX11-1.0.3-8.fc7.src.rpm
Only in applications/: libX11-devel-1.0.3-8.fc7.i386.rpm
Only in applications/: livna-release-8.rpm
Only in applications/: MPlayer-1.0rc2.tar.bz2
Only in applications/: prozilla-2.0.4.tar.bz2
Only in applications/: vlc-0.8.6d.tar.bz2
Only in applications/: vlcosx.vlt
Here, applications and coding are two different directories. It lists the differences in the files inside them! It does not include the sub-directory differences. This may be because, even a folder is treated as a file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how many files on a subdir ? graziano1968 Linux - General 2 08-10-2006 12:18 AM
How can I use diff to difference between programs output? nadavvin Linux - General 4 08-05-2006 05:35 AM
deleting all *.m3u files in a directory+subdir? minm Linux - Newbie 5 10-12-2004 04:31 PM
How to change owner and group in a directory to include subdir and all files Lakota Linux - General 2 07-15-2004 10:35 AM
What's the difference between .diff and .patch? nidua18 Linux - Software 0 10-15-2003 01:25 AM


All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration