LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04: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 04:30 PM. Reason: I asked a dumb question.
 
Old 04-30-2012, 04:06 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

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

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 AM.

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
Open Source Consulting | Domain Registration