LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-07-2011, 01:53 PM   #16
chris_carr
Member
 
Registered: Oct 2011
Location: Houston Tx
Distribution: RHEL 6
Posts: 57

Original Poster
Rep: Reputation: 0
Cool


@catkin...Thank you so much this is the cloesest I have been to what I needed in weeks. How would I write it so that it only prints the files that do not match? Sorry...i'm just a little over my head on this one lol.
 
Old 11-07-2011, 01:56 PM   #17
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Something like this
Code:
#!/bin/bash

while read md5sum file
do
    matches=$( grep $md5sum md5Boutput.txt )
    [[ $matches = '' ]] && echo "$file"
done < md5Aoutput.txt
 
1 members found this post helpful.
Old 11-07-2011, 02:01 PM   #18
chris_carr
Member
 
Registered: Oct 2011
Location: Houston Tx
Distribution: RHEL 6
Posts: 57

Original Poster
Rep: Reputation: 0
@catkin...does not get much better than that. Thank you so much for all of your help. You have just saved me another 3 weeks of mind numbing work. .
 
Old 11-07-2011, 02:02 PM   #19
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Glad it works for you

Threads can be marked SOLVED via the Thread Tools menu.
 
Old 11-07-2011, 02:21 PM   #20
chris_carr
Member
 
Registered: Oct 2011
Location: Houston Tx
Distribution: RHEL 6
Posts: 57

Original Poster
Rep: Reputation: 0
Ok great. Thank you again and hope you have a good day.
 
  


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
compare size script trintukaz Programming 36 09-24-2011 08:58 AM
Back up script (find, cp, md5sum, rm) Kuro Linux - Newbie 3 10-22-2010 02:08 PM
Please help on making a compare script Magil Programming 7 12-14-2009 06:13 AM
md5sum script Axion Linux - Software 4 02-14-2004 08:56 PM
Help with a Directory Compare Script bullfrog Linux - General 1 02-04-2003 09:05 AM


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