LinuxQuestions.org
Help answer threads with 0 replies.
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, 12: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, 12:56 PM   #17
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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, 01: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, 01:02 PM   #19
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

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

Threads can be marked SOLVED via the Thread Tools menu.
 
Old 11-07-2011, 01: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 07:58 AM
Back up script (find, cp, md5sum, rm) Kuro Linux - Newbie 3 10-22-2010 01:08 PM
Please help on making a compare script Magil Programming 7 12-14-2009 05:13 AM
md5sum script Axion Linux - Software 4 02-14-2004 07:56 PM
Help with a Directory Compare Script bullfrog Linux - General 1 02-04-2003 08:05 AM

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

All times are GMT -5. The time now is 01:20 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