Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-30-2012, 04:03 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 10

Rep: Reputation: Disabled
Comparing 2 Directories

The goal of the assignment is to write a script to find the differences between a base and a modified directory.

For instance if dir1 has a file named foo-6_21_08 and dir2 has a file named foo-6_25_08 then the output needs to be


I'm not really sure where to even begin with this assignment. I'm just starting to learn how to program within the shell. A few tips on where to start would be great.

Last edited by hawkfan50; 04-30-2012 at 04:30 PM. Reason: I asked a dumb question.
Old 04-30-2012, 04:06 PM   #2
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 4,032

Rep: Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437Reputation: 1437
name it another way?

1 members found this post helpful.
Old 04-30-2012, 05:30 PM   #3
LQ Newbie
Registered: Apr 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I wasn't sure if that would screw with the end goal of the assignment. The assignment has to do with comparing two parts of a file name to determine if it was modified or if it's new.


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
Comparing two directories fergus Linux - General 7 04-03-2012 10:56 AM
[SOLVED] Comparing two remote directories in RHEL 5 servers. roi.levy Linux - Enterprise 1 10-17-2010 11:40 AM
Comparing directories bzenowich Linux - Software 3 10-08-2009 01:47 PM
comparing directories and files crazy8 Linux - Newbie 4 01-16-2008 10:33 AM
Comparing directories ursusman Linux - Newbie 5 07-04-2006 06:56 AM

All times are GMT -5. The time now is 10:47 AM.

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