LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 04-30-2012, 05:03 PM   #1
hawkfan50
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

foo MODIFIED.

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 05:30 PM. Reason: I asked a dumb question.
 
Old 04-30-2012, 05:06 PM   #2
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,222

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

Code:
foo-2011_06_25
 
1 members found this post helpful.
Old 04-30-2012, 06:30 PM   #3
hawkfan50
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.
 
  


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


All times are GMT -5. The time now is 02:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration